Package org.apache.tika.parser.strings
Class StringsConfig
- java.lang.Object
-
- org.apache.tika.parser.strings.StringsConfig
-
- All Implemented Interfaces:
Serializable
public class StringsConfig extends Object implements Serializable
Configuration for the "strings" (or strings-alternative) command.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StringsConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringsEncoding
getEncoding()
Returns the character encoding of the strings that are to be found.int
getMinLength()
Returns the minimum sequence length (characters) to print.int
getTimeoutSeconds()
Returns the maximum time (in seconds) to wait for the "strings" command to terminate.void
setEncoding(StringsEncoding encoding)
Sets the character encoding of the strings that are to be found.void
setMinLength(int minLength)
Sets the minimum sequence length (characters) to print.void
setTimeoutSeconds(int timeoutSeconds)
Sets the maximum time (in seconds) to wait for the "strings" command to terminate.
-
-
-
Method Detail
-
getMinLength
public int getMinLength()
Returns the minimum sequence length (characters) to print.- Returns:
- the minimum sequence length (characters) to print.
-
setMinLength
public void setMinLength(int minLength)
Sets the minimum sequence length (characters) to print.- Parameters:
minLength
- the minimum sequence length (characters) to print.
-
getEncoding
public StringsEncoding getEncoding()
Returns the character encoding of the strings that are to be found.- Returns:
StringsEncoding
enum that represents the character encoding of the strings that are to be found.
-
setEncoding
public void setEncoding(StringsEncoding encoding)
Sets the character encoding of the strings that are to be found.- Parameters:
encoding
-StringsEncoding
enum that represents the character encoding of the strings that are to be found.
-
getTimeoutSeconds
public int getTimeoutSeconds()
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.
-
setTimeoutSeconds
public void setTimeoutSeconds(int timeoutSeconds)
Sets the maximum time (in seconds) to wait for the "strings" command to terminate.- Parameters:
timeoutSeconds
- the maximum time (in seconds) to wait for the "strings" command to terminate.
-
-