| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private static Timer | |
| private boolean | |
| private File | |
| private SimpleDateFormat | |
| private SimpleDateFormat | |
| private String | |
| private int | |
| private RolloverFileOutputStream. | |
| pack-priv static final String |
| Access | Constructor and Description |
|---|---|
| public | RolloverFileOutputStream(String
The filename must include the string "yyyy_mm_dd",
which is replaced with the actual date when creating and rolling over the file. filename)
|
| public | RolloverFileOutputStream(String
The filename must include the string "yyyy_mm_dd",
which is replaced with the actual date when creating and rolling over the file. filename, boolean If true, existing files will be appended to. append)
|
| public | RolloverFileOutputStream(String
The filename must include the string "yyyy_mm_dd",
which is replaced with the actual date when creating and rolling over the file. filename, boolean If true, existing files will be appended to. append, int The number of days to retain files before deleting them. 0 to retain forever. retainDays)
|
| public | RolloverFileOutputStream(String
The filename must include the string "yyyy_mm_dd",
which is replaced with the actual date when creating and rolling over the file. filename, boolean If true, existing files will be appended to. append, int The number of days to retain files before deleting them. 0 to retain forever. retainDays, TimeZone zone)
|
| public | RolloverFileOutputStream(String
The filename must include the string "yyyy_mm_dd",
which is replaced with the actual date when creating and rolling over the file. filename, boolean If true, existing files will be appended to. append, int The number of days to retain files before deleting them. 0 to retain forever. retainDays, TimeZone zone, String The format for the date file substitution. If null the system property ROLLOVERFILE_DATE_FORMAT is
used and if that is null, then default is "yyyy_MM_dd". dateFormat, String The format for the file extension of backup files. If null the system property
ROLLOVERFILE_BACKUP_FORMAT is used and if that is null, then default is "HHmmssSSS". backupFormat)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| public String | |
| public String | |
| public int | |
| private void | |
| private synchronized void | |
| public void | write(byte[]
the data to be written. buf)Overrides java. b.length bytes to this output stream.
|
| public void | write(byte[]
the data. buf, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. len bytes from the specified
byte array starting at offset off to
this output stream.
|
| __rollover | back to summary |
|---|---|
| private static Timer __rollover | |
| _append | back to summary |
|---|---|
| private boolean _append | |
| _file | back to summary |
|---|---|
| private File _file | |
| _fileBackupFormat | back to summary |
|---|---|
| private SimpleDateFormat _fileBackupFormat | |
| _fileDateFormat | back to summary |
|---|---|
| private SimpleDateFormat _fileDateFormat | |
| _filename | back to summary |
|---|---|
| private String _filename | |
| _retainDays | back to summary |
|---|---|
| private int _retainDays | |
| _rollTask | back to summary |
|---|---|
| private RolloverFileOutputStream. | |
| YYYY_MM_DD | back to summary |
|---|---|
| pack-priv static final String YYYY_MM_DD | |
| RolloverFileOutputStream | back to summary |
|---|---|
public RolloverFileOutputStream(String filename) throws IOException
| |
| RolloverFileOutputStream | back to summary |
|---|---|
public RolloverFileOutputStream(String filename, boolean append) throws IOException
| |
| RolloverFileOutputStream | back to summary |
|---|---|
public RolloverFileOutputStream(String filename, boolean append, int retainDays) throws IOException
| |
| RolloverFileOutputStream | back to summary |
|---|---|
public RolloverFileOutputStream(String filename, boolean append, int retainDays, TimeZone zone) throws IOException
| |
| RolloverFileOutputStream | back to summary |
|---|---|
public RolloverFileOutputStream(String filename, boolean append, int retainDays, TimeZone zone, String dateFormat, String backupFormat) throws IOException
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources associated with the stream.
| |
| getDatedFilename | back to summary |
|---|---|
| public String getDatedFilename() | |
| getFilename | back to summary |
|---|---|
| public String getFilename() | |
| getRetainDays | back to summary |
|---|---|
| public int getRetainDays() | |
| removeOldFiles | back to summary |
|---|---|
| private void removeOldFiles() | |
| setFile | back to summary |
|---|---|
| private synchronized void setFile() throws IOException | |
| write | back to summary |
|---|---|
| public void write(byte[] buf) throws IOException Overrides java. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| public void write(byte[] buf, int off, int len) throws IOException Overrides java. Doc from java. Writes
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | run()
Implements abstract java. Implements java. |
| RollTask | back to summary |
|---|---|
| private RollTask() | |
| run | back to summary |
|---|---|
| public void run() Implements abstract java. Implements java. Doc from java. The action to be performed by this timer task. | |