Class MediaFileNameTokenizer

java.lang.Object
be.gaudry.model.file.MediaFileNameTokenizer

public class MediaFileNameTokenizer extends Object
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
  • Field Details

    • DEFAULT_FORMAT

      public static final String DEFAULT_FORMAT
      Default value for the format if it's not defined into the user preferences
      See Also:
      Constant Field Values
    • DEFAULT_RESERVED

      public static final String[] DEFAULT_RESERVED
      Default value for the 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

      public String getFormat()
      Returns:
      the format used to parse the file name
    • getReserved

      public String[] getReserved()
      Some strings are used into the format used to parse the names, so these strings are not allowed into the tokens
      Returns:
      the forbidden strings