public class LogFileWriter extends java.lang.Object implements java.lang.Comparable<LogFileWriter>
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
path |
| Constructor and Description |
|---|
LogFileWriter(java.lang.String path,
java.io.BufferedWriter writer)
Construct the object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(LogFileWriter other) |
long |
getLastUse() |
java.lang.String |
getPath()
File path.
|
java.io.BufferedWriter |
getWriter() |
void |
updateLastUse()
Update last use time.
|
public LogFileWriter(java.lang.String path,
java.io.BufferedWriter writer)
path - The path to write towriter - The writer for the filepublic java.lang.String getPath()
public java.io.BufferedWriter getWriter()
public long getLastUse()
public void updateLastUse()
public int compareTo(@Nullable
LogFileWriter other)
compareTo in interface java.lang.Comparable<LogFileWriter>