public class RollingDateFile extends RollingFile
Modifier and Type | Field and Description |
---|---|
static String |
DD |
static String |
DDHH |
static String |
MM |
log
pathSeparator, pathSeparatorChar, separator, separatorChar
Constructor and Description |
---|
RollingDateFile(String pathname,
String baseName) |
Modifier and Type | Method and Description |
---|---|
protected int |
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, setDigits
canExecute, 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, toURL
public static final String MM
public static final String DD
public static final String DDHH
protected String getNewFileName()
getNewFileName
in class RollingFile
protected String getNewFileName(long t)
protected int calcPos()
calcPos
in class RollingFile
RollingFile.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 © 2018. All rights reserved.