Package hudson.util.io
Class ReopenableRotatingFileOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- hudson.util.io.ReopenableFileOutputStream
-
- hudson.util.io.ReopenableRotatingFileOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
@Deprecated public class ReopenableRotatingFileOutputStream extends ReopenableFileOutputStream
Deprecated.due to risk for file leak. PreferRewindableRotatingFileOutputStreamReopenableFileOutputStreamthat does log rotation upon rewind.- Since:
- 1.416
- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
-
Fields inherited from class hudson.util.io.ReopenableFileOutputStream
out
-
-
Constructor Summary
Constructors Constructor Description ReopenableRotatingFileOutputStream(File out, int size)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddeleteAll()Deprecated.Deletes all the log files, including rotated files.protected FilegetNumberedFileName(int n)Deprecated.voidrewind()Deprecated.In addition to close, ensure that the next "open" would truncate the file.-
Methods inherited from class hudson.util.io.ReopenableFileOutputStream
close, flush, write, write, write
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Constructor Detail
-
ReopenableRotatingFileOutputStream
public ReopenableRotatingFileOutputStream(File out, int size)
Deprecated.
-
-
Method Detail
-
getNumberedFileName
protected File getNumberedFileName(int n)
Deprecated.
-
rewind
public void rewind() throws IOExceptionDeprecated.Description copied from class:ReopenableFileOutputStreamIn addition to close, ensure that the next "open" would truncate the file.- Overrides:
rewindin classReopenableFileOutputStream- Throws:
IOException
-
deleteAll
public void deleteAll()
Deprecated.Deletes all the log files, including rotated files.
-
-