Package org.apache.tika.parser.strings
Class FileConfig
java.lang.Object
org.apache.tika.parser.strings.FileConfig
- All Implemented Interfaces:
Serializable
Configuration for the "file" (or file-alternative) command.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the "file" installation folder.booleanReturnstrueif the mime option is enabled.voidsetFilePath(String filePath) Sets the "file" installation folder.voidsetMimetype(boolean mimetype) Sets the mime option.
-
Constructor Details
-
FileConfig
public FileConfig()Default constructor.
-
-
Method Details
-
getFilePath
Returns the "file" installation folder.- Returns:
- the "file" installation folder.
-
setFilePath
Sets the "file" installation folder.- Parameters:
filePath- the "file" installation folder.
-
isMimetype
public boolean isMimetype()Returnstrueif the mime option is enabled.- Returns:
trueif the mime option is enabled, otherwise.
-
setMimetype
public void setMimetype(boolean mimetype) Sets the mime option. Iftrue, it causes the file command to output mime type strings rather than the more traditional human readable ones.- Parameters:
mimetype-
-