public abstract class Writer
extends java.lang.Object
Used in worker thread.
| Constructor and Description |
|---|
Writer() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
appendLog(java.lang.String log)
Append the log to the end of the opened log file, normally an extra line separator is needed.
|
abstract boolean |
close()
Make sure the opened log file is closed, normally called before switching the log file.
|
abstract java.io.File |
getOpenedFile()
Get the opened log file.
|
abstract java.lang.String |
getOpenedFileName()
Get the name of opened log file.
|
abstract boolean |
isOpened()
Whether a log file is successfully opened in previous
open(File). |
abstract boolean |
open(java.io.File file)
Open a specific log file for future writing, if it doesn't exist yet, just create it.
|
public abstract boolean open(java.io.File file)
file - the specific log file, may not existpublic abstract boolean isOpened()
open(File).public abstract java.io.File getOpenedFile()
public abstract java.lang.String getOpenedFileName()
public abstract void appendLog(java.lang.String log)
log - the log to appendpublic abstract boolean close()