public class StringsConfig
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private StringsEncoding |
encoding |
private int |
minLength |
private static long |
serialVersionUID
Serial version UID
|
private java.lang.String |
stringsPath |
private int |
timeout |
Constructor and Description |
---|
StringsConfig()
Default contructor.
|
StringsConfig(java.io.InputStream is)
Loads properties from InputStream and then tries to close InputStream.
|
Modifier and Type | Method and 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.
|
java.lang.String |
getStringsPath()
Returns the "strings" installation folder.
|
int |
getTimeout()
Returns the maximum time (in seconds) to wait for the "strings" command
to terminate.
|
private void |
init(java.io.InputStream is)
Initializes attributes.
|
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 |
setStringsPath(java.lang.String path)
Sets the "strings" installation folder.
|
void |
setTimeout(int timeout)
Sets the maximum time (in seconds) to wait for the "strings" command to
terminate.
|
private static final long serialVersionUID
private java.lang.String stringsPath
private int minLength
private StringsEncoding encoding
private int timeout
public StringsConfig()
public StringsConfig(java.io.InputStream is)
is
- private void init(java.io.InputStream is)
is
- public java.lang.String getStringsPath()
public int getMinLength()
public StringsEncoding getEncoding()
StringsEncoding
enum that represents the character
encoding of the strings that are to be found.public int getTimeout()
public void setStringsPath(java.lang.String path)
path
- the "strings" installation folder.public void setMinLength(int minLength)
minLength
- the minimum sequence length (characters) to print.public void setEncoding(StringsEncoding encoding)
encoding
- StringsEncoding
enum that represents the character
encoding of the strings that are to be found.public void setTimeout(int timeout)
timeout
- the maximum time (in seconds) to wait for the "strings"
command to terminate.