public class ReopenableRotatingFileOutputStream extends ReopenableFileOutputStream
ReopenableFileOutputStream
that does log rotation upon rewind.out
Constructor and Description |
---|
ReopenableRotatingFileOutputStream(File out,
int size) |
Modifier and Type | Method and Description |
---|---|
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.
|
public ReopenableRotatingFileOutputStream(File out, int size)
protected File getNumberedFileName(int n)
public void rewind() throws IOException
ReopenableFileOutputStream
rewind
in class ReopenableFileOutputStream
IOException
public void deleteAll()
Copyright © 2015. All rights reserved.