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
ReopenableFileOutputStreamrewind in class ReopenableFileOutputStreamIOExceptionpublic void deleteAll()
Copyright © 2019. All rights reserved.