Package be.gaudry.model.file
Class MediaFileNameTokenizer
java.lang.Object
be.gaudry.model.file.MediaFileNameTokenizer
Allows to use a same structure for file names, and to put(/to read) some
informations about the file into its name. A string format to parse the file
name is defined by default, but may be stored
into the
user preferences
, based on the media token
values. These
rules matches only the file name, without the file extension. \n
Provided by the broldev.file.finder.model project.- Since:
- 1.0 (Jun 11, 2011), broldev.file.finder.model 0.0.1-SNAPSHOT dependency
- Version:
- 1.0 (Jun 11, 2011)
- Author:
- Steph GAUDRY
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Tokens available to build the file name -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic String
Default value forthe format
if it's not defined into the user preferencesstatic String[]
Default value forthe reserved strings
if they are not defined into the user preferences -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DEFAULT_FORMAT
Default value forthe format
if it's not defined into the user preferences- See Also:
- Constant Field Values
-
DEFAULT_RESERVED
Default value forthe reserved strings
if they are not defined into the user preferences
-
-
Constructor Details
-
MediaFileNameTokenizer
public MediaFileNameTokenizer()Builds a default instance of a media tokenizer
-
-
Method Details
-
getFormat
- Returns:
- the format used to parse the file name
-
getReserved
Some strings are used into theformat
used to parse the names, so these strings are not allowed into the tokens- Returns:
- the forbidden strings
-