public class RollingDateFile extends RollingFile
| Modifier and Type | Field and Description |
|---|---|
static String |
DD |
static String |
DDHH |
static String |
MM |
logpathSeparator, pathSeparatorChar, separator, separatorChar| Constructor and Description |
|---|
RollingDateFile(String pathname,
String baseName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
calcPos() |
String |
getFormat()
Getter for format attribute.
|
File |
getNewFile(long t) |
protected String |
getNewFileName() |
protected String |
getNewFileName(long t) |
void |
init(File file)
initialization routine for a new file
|
void |
setFormat(String format)
Setter for format attribute used to format the file names
|
getFileExpression, getNewFile, readAll, setDigitscanExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURLpublic static final String MM
public static final String DD
public static final String DDHH
protected String getNewFileName()
getNewFileName in class RollingFileprotected String getNewFileName(long t)
protected void calcPos()
calcPos in class RollingFileRollingFile.calcPos()public String getFormat()
public void setFormat(String format)
format - the format to setpublic File getNewFile(long t)
t - the time in milliseconds that applies to this filepublic void init(File file)
file - Copyright © 2015. All rights reserved.