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