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