Package org.apache.tika.parser.strings
Class StringsConfig
- java.lang.Object
 - 
- org.apache.tika.parser.strings.StringsConfig
 
 
- 
- All Implemented Interfaces:
 java.io.Serializable
public class StringsConfig extends java.lang.Object implements java.io.SerializableConfiguration for the "strings" (or strings-alternative) command.- See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description StringsConfig()Default contructor.StringsConfig(java.io.InputStream is)Loads properties from InputStream and then tries to close InputStream. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringsEncodinggetEncoding()Returns the character encoding of the strings that are to be found.intgetMinLength()Returns the minimum sequence length (characters) to print.java.lang.StringgetStringsPath()Returns the "strings" installation folder.intgetTimeout()Returns the maximum time (in seconds) to wait for the "strings" command to terminate.voidsetEncoding(StringsEncoding encoding)Sets the character encoding of the strings that are to be found.voidsetMinLength(int minLength)Sets the minimum sequence length (characters) to print.voidsetStringsPath(java.lang.String path)Sets the "strings" installation folder.voidsetTimeout(int timeout)Sets the maximum time (in seconds) to wait for the "strings" command to terminate. 
 - 
 
- 
- 
Constructor Detail
- 
StringsConfig
public StringsConfig()
Default contructor. 
- 
StringsConfig
public StringsConfig(java.io.InputStream is)
Loads properties from InputStream and then tries to close InputStream. If there is an IOException, this silently swallows the exception and goes back to the default.- Parameters:
 is-
 
 - 
 
- 
Method Detail
- 
getStringsPath
public java.lang.String getStringsPath()
Returns the "strings" installation folder.- Returns:
 - the "strings" installation folder.
 
 
- 
getMinLength
public int getMinLength()
Returns the minimum sequence length (characters) to print.- Returns:
 - the minimum sequence length (characters) to print.
 
 
- 
getEncoding
public StringsEncoding getEncoding()
Returns the character encoding of the strings that are to be found.- Returns:
 StringsEncodingenum that represents the character encoding of the strings that are to be found.
 
- 
getTimeout
public int getTimeout()
Returns the maximum time (in seconds) to wait for the "strings" command to terminate.- Returns:
 - the maximum time (in seconds) to wait for the "strings" command to terminate.
 
 
- 
setStringsPath
public void setStringsPath(java.lang.String path)
Sets the "strings" installation folder.- Parameters:
 path- the "strings" installation folder.
 
- 
setMinLength
public void setMinLength(int minLength)
Sets the minimum sequence length (characters) to print.- Parameters:
 minLength- the minimum sequence length (characters) to print.
 
- 
setEncoding
public void setEncoding(StringsEncoding encoding)
Sets the character encoding of the strings that are to be found.- Parameters:
 encoding-StringsEncodingenum that represents the character encoding of the strings that are to be found.
 
- 
setTimeout
public void setTimeout(int timeout)
Sets the maximum time (in seconds) to wait for the "strings" command to terminate.- Parameters:
 timeout- the maximum time (in seconds) to wait for the "strings" command to terminate.
 
 - 
 
 -