SimpleDateFormat
to form the appended string to the base file name as well as a suffix
which should be appended last.
A new UniqueFileStrategy( new File( "foo." ), "yyyy-MM-dd", ".log" )
object will return File objects with file names like
foo.2001-12-24.log
| Modifier and Type | Field and Description |
|---|---|
| private File | |
| private SimpleDateFormat | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | UniqueFileStrategy(final File
the base file baseFile, String the format pattern pattern)Creation of a new Unique File Strategy ?? |
| public | UniqueFileStrategy(final File
the base file baseFile, String the format pattern pattern, String the suffix ?? suffix)Creation of a new Unique File Strategy ?? |
| Modifier and Type | Method and Description |
|---|---|
| public File | Returns: File the calculated file nameImplements org. |
| m_baseFile | back to summary |
|---|---|
| private File m_baseFile | |
| m_formatter | back to summary |
|---|---|
| private SimpleDateFormat m_formatter | |
| m_suffix | back to summary |
|---|---|
| private String m_suffix | |
| UniqueFileStrategy | back to summary |
|---|---|
| public UniqueFileStrategy(final File baseFile) Creation of a new Unique File Strategy ??
| |
| UniqueFileStrategy | back to summary |
|---|---|
| public UniqueFileStrategy(final File baseFile, String pattern) Creation of a new Unique File Strategy ?? | |
| UniqueFileStrategy | back to summary |
|---|---|
| public UniqueFileStrategy(final File baseFile, String pattern, String suffix) Creation of a new Unique File Strategy ?? | |
| nextFile | back to summary |
|---|---|
| public File nextFile() Implements org. Calculate the real file name from the base filename.
| |