Package hudson.util.io
Class RewindableRotatingFileOutputStream
java.lang.Object
java.io.OutputStream
hudson.util.io.RewindableFileOutputStream
hudson.util.io.RewindableRotatingFileOutputStream
- All Implemented Interfaces:
- Closeable,- Flushable,- AutoCloseable
ReopenableFileOutputStream that does log rotation upon rewind.- Since:
- 2.18
- Author:
- Kohsuke Kawaguchi
- 
Field SummaryFields inherited from class hudson.util.io.RewindableFileOutputStreamout
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidDeletes all the log files, including rotated files.protected FilegetNumberedFileName(int n) voidrewind()In addition to close, ensure that the next "open" would truncate the file.Methods inherited from class hudson.util.io.RewindableFileOutputStreamclose, flush, write, write, writeMethods inherited from class java.io.OutputStreamnullOutputStream
- 
Constructor Details- 
RewindableRotatingFileOutputStream
 
- 
- 
Method Details- 
getNumberedFileName
- 
rewindDescription copied from class:RewindableFileOutputStreamIn addition to close, ensure that the next "open" would truncate the file.- Overrides:
- rewindin class- RewindableFileOutputStream
- Throws:
- IOException
 
- 
deleteAllpublic void deleteAll()Deletes all the log files, including rotated files.
 
-