public class FilenameGenerator extends Object
Constructor and Description |
---|
FilenameGenerator(String path,
String initialValue,
String suffix)
Create a new filename generator.
|
Modifier and Type | Method and Description |
---|---|
String |
generateFilename()
Generate a filename.
|
String |
getInitialValue()
Returns the current initial value of the base file names generated.
|
String |
getPath()
Returns the path setting of this filename generator.
|
String |
getSuffix()
Returns the suffix setting of this filename generator.
|
public FilenameGenerator(String path, String initialValue, String suffix) throws NumberFormatException
path
- The path where the file are created. If null
, the default file path from the ApfloatContext
is used.initialValue
- The initial value for the numbers. If null
, the default file initial value from the ApfloatContext
is used.suffix
- The suffix for file names. If null
, the default file suffix from the ApfloatContext
is used.NumberFormatException
- If initialValue is not a valid integer number.public String generateFilename()
public String getPath()
public String getInitialValue()
public String getSuffix()
Copyright © 2018. All rights reserved.