hudson.util.io
Class ReopenableRotatingFileOutputStream
java.lang.Object
java.io.OutputStream
hudson.util.io.ReopenableFileOutputStream
hudson.util.io.ReopenableRotatingFileOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class ReopenableRotatingFileOutputStream
- extends ReopenableFileOutputStream
ReopenableFileOutputStream
that does log rotation upon rewind.
- Since:
- 1.416
- Author:
- Kohsuke Kawaguchi
Method Summary |
void |
deleteAll()
Deletes all the log files, including rotated files. |
protected File |
getNumberedFileName(int n)
|
void |
rewind()
In addition to close, ensure that the next "open" would truncate the file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReopenableRotatingFileOutputStream
public ReopenableRotatingFileOutputStream(File out,
int size)
getNumberedFileName
protected File getNumberedFileName(int n)
rewind
public void rewind()
throws IOException
- Description copied from class:
ReopenableFileOutputStream
- In addition to close, ensure that the next "open" would truncate the file.
- Overrides:
rewind
in class ReopenableFileOutputStream
- Throws:
IOException
deleteAll
public void deleteAll()
- Deletes all the log files, including rotated files.
Copyright © 2004-2013. All Rights Reserved.