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.
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
ReopenableRotatingFileOutputStream
Deprecated.
-
-
Method Details
-
getNumberedFileName
Deprecated. -
rewind
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.
-
RewindableRotatingFileOutputStream