public class RollingDateFile extends RollingFile
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DD |
static java.lang.String |
DDHH |
static java.lang.String |
MM |
log| Constructor and Description |
|---|
RollingDateFile(java.lang.String pathname,
java.lang.String baseName) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
calcPos() |
java.lang.String |
getFormat()
Getter for format attribute.
|
java.io.File |
getNewFile(long t) |
protected java.lang.String |
getNewFileName() |
protected java.lang.String |
getNewFileName(long t) |
void |
init(java.io.File file)
initialization routine for a new file
|
void |
setFormat(java.lang.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 java.lang.String MM
public static final java.lang.String DD
public static final java.lang.String DDHH
public RollingDateFile(java.lang.String pathname,
java.lang.String baseName)
pathname - baseName - protected java.lang.String getNewFileName()
getNewFileName in class RollingFileprotected java.lang.String getNewFileName(long t)
protected int calcPos()
calcPos in class RollingFileRollingFile.calcPos()public java.lang.String getFormat()
public void setFormat(java.lang.String format)
format - the format to setpublic java.io.File getNewFile(long t)
t - the time in milliseconds that applies to this filepublic void init(java.io.File file)
file -