Class FileDescription

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    JcrContent

    public class FileDescription
    extends Object
    implements Serializable
    A FileDescription pack all the needed information to parse and index a file. We need :
    • the path to the file
    • the encoding of the file
    • the format of the file
    • the language of the file
    The java.io.InputStreamReader javadoc page provides a link to a list of java-known encodings.
    See Also:
    Serialized Form
    • Constructor Detail

      • FileDescription

        public FileDescription​(String path,
                               String encoding,
                               String format,
                               String lang)
        Set the new FileDescription with the given path, encoding, format and language. The path must not be null.
        Parameters:
        path -
        encoding -
        format -
        lang -
    • Method Detail

      • getPath

        public String getPath()
        Return the file path
        Returns:
      • getEncoding

        public String getEncoding()
        Return the file encoding
        Returns:
      • getFormat

        public String getFormat()
        Return the file format
        Returns:
      • getLang

        public String getLang()
        Return the file language
        Returns:
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object