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. PreferRewindableRotatingFileOutputStream
ReopenableFileOutputStream
that 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 void
deleteAll()
Deprecated.Deletes all the log files, including rotated files.protected File
getNumberedFileName(int n)
Deprecated.void
rewind()
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 IOException
Deprecated.Description copied from class:ReopenableFileOutputStream
In addition to close, ensure that the next "open" would truncate the file.- Overrides:
rewind
in classReopenableFileOutputStream
- Throws:
IOException
-
deleteAll
public void deleteAll()
Deprecated.Deletes all the log files, including rotated files.
-
-