Class FileConfig

java.lang.Object
org.apache.tika.parser.strings.FileConfig
All Implemented Interfaces:
Serializable

@Deprecated(since="2026-04-30") public class FileConfig extends Object implements Serializable
Deprecated.
This version of the Apache Tika library is deprecated. Use your own version of Apache Tika.
Configuration for the "file" (or file-alternative) command.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Returns the "file" installation folder.
    boolean
    Deprecated.
    Returns true if the mime option is enabled.
    void
    setFilePath(String filePath)
    Deprecated.
    Sets the "file" installation folder.
    void
    setMimetype(boolean mimetype)
    Deprecated.
    Sets the mime option.

    Methods inherited from class java.lang.Object

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

    • FileConfig

      public FileConfig()
      Deprecated.
      Default constructor.
  • Method Details

    • getFilePath

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

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

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

      public void setMimetype(boolean mimetype)
      Deprecated.
      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 -