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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.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, writeMethods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
ReopenableRotatingFileOutputStream
Deprecated.
-
-
Method Details
-
getNumberedFileName
Deprecated. -
rewind
Deprecated.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.
-
RewindableRotatingFileOutputStream