| java.lang.Object | ||
| ↳ | java.io.OutputStream | |
| ↳ | com.pnfsoftware.jeb.util.io.RotatingFileOutputStream | |
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
RotatingFileOutputStream(File folder, String basename, int rotFileCount, long rotFileSize)
Create a rotating file(s) output stream.
| |||||||||||
|
RotatingFileOutputStream(File folder, String basename, int rotFileCount, long rotFileSize, boolean buffered, boolean appendToExisting)
Create a rotating file(s) output stream.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void | close() | ||||||||||
| void | flush() | ||||||||||
| File | getAdditionalOutputFile(int i) | ||||||||||
| File | getOutputFile() | ||||||||||
| int | getRotatingFileCount() | ||||||||||
| long | getRotatingFileSize() | ||||||||||
| long | getRotationCount() | ||||||||||
| boolean | isBuffered() | ||||||||||
| void | rotate() | ||||||||||
| void | write(byte[] b, int off, int len) | ||||||||||
| void | write(int b) | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.io.OutputStream
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.io.Closeable
| |||||||||||
From interface
java.io.Flushable
| |||||||||||
From interface
java.lang.AutoCloseable
| |||||||||||
Create a rotating file(s) output stream. The stream is buffered, output is appended to existing files (if any).
| IOException |
|---|
Create a rotating file(s) output stream.
| folder | output folder; use null to denote the current working directory |
|---|---|
| basename | base file name, must be non-empty |
| rotFileCount | >=0 (can be 0 for no rotating output); should be >= 1 |
| rotFileSize | >0 (cannot be negative or "infinite": a maximum file size must be specified to prevent uncontrolled growth) |
| buffered | enable or disable buffered-writes (recommended for high-frequency writing) |
| appendToExisting | append to a previously existing file, if any |
| IOException | on IO error |
|---|
| IOException |
|---|
| IOException |
|---|
| IOException |
|---|
| IOException |
|---|
| IOException |
|---|
| IOException |
|---|