public class TimeStampFileNamingPolicy extends Object implements FileNamingPolicy
| Constructor and Description |
|---|
TimeStampFileNamingPolicy(File initialFile,
String timeStampFormat,
String prefix)
Constructs a TimeStampFileNaming policy with a given initial file, a timestamp format, and a prefix string.
|
| Modifier and Type | Method and Description |
|---|---|
File |
getInitialName()
Gets the initial file.
|
File |
getNextName()
Gets the next name for this
FileNamingPolicy. |
List<File> |
listFiles()
List the files in the initial file directory that match the prefix, name and suffix format.
|
public TimeStampFileNamingPolicy(File initialFile, String timeStampFormat, String prefix)
initialFile - The initial file that will be archived.timeStampFormat - The timestamp format to append to the archived files. Should be a format that is
understood by DateTimeFormat.prefix - The prefix to prefix to the archived files.public File getInitialName()
getInitialName in interface FileNamingPolicypublic File getNextName()
FileNamingPolicy. The next name will be formatted with prefix first,
then the initial filename and finally the timestamp will be appended.getNextName in interface FileNamingPolicyFileNamingPolicy.public List<File> listFiles()
listFiles in interface FileNamingPolicyCopyright © 2025 Open Identity Platform Community. All rights reserved.