Class FileConfig

  • All Implemented Interfaces:
    java.io.Serializable

    public class FileConfig
    extends java.lang.Object
    implements java.io.Serializable
    Configuration for the "file" (or file-alternative) command.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      FileConfig()
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFilePath()
      Returns the "file" installation folder.
      boolean isMimetype()
      Returns true if the mime option is enabled.
      void setFilePath​(java.lang.String filePath)
      Sets the "file" installation folder.
      void setMimetype​(boolean mimetype)
      Sets the mime option.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileConfig

        public FileConfig()
        Default constructor.
    • Method Detail

      • getFilePath

        public java.lang.String getFilePath()
        Returns the "file" installation folder.
        Returns:
        the "file" installation folder.
      • setFilePath

        public void setFilePath​(java.lang.String filePath)
        Sets the "file" installation folder.
        Parameters:
        filePath - the "file" installation folder.
      • isMimetype

        public boolean isMimetype()
        Returns true if the mime option is enabled.
        Returns:
        true if the mime option is enabled, otherwise.
      • setMimetype

        public void setMimetype​(boolean mimetype)
        Sets the mime option. If true, it causes the file command to output mime type strings rather than the more traditional human readable ones.
        Parameters:
        mimetype -