Package org.apache.tika.parser.strings
Enum StringsEncoding
- java.lang.Object
-
- java.lang.Enum<StringsEncoding>
-
- org.apache.tika.parser.strings.StringsEncoding
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<StringsEncoding>
public enum StringsEncoding extends java.lang.Enum<StringsEncoding>
Character encoding of the strings that are to be found using the "strings" command.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BIGENDIAN_16_BIT
BIGENDIAN_32_BIT
LITTLEENDIAN_16_BIT
LITTLEENDIAN_32_BIT
SINGLE_7_BIT
SINGLE_8_BIT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description char
get()
java.lang.String
toString()
static StringsEncoding
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static StringsEncoding[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SINGLE_7_BIT
public static final StringsEncoding SINGLE_7_BIT
-
SINGLE_8_BIT
public static final StringsEncoding SINGLE_8_BIT
-
BIGENDIAN_16_BIT
public static final StringsEncoding BIGENDIAN_16_BIT
-
LITTLEENDIAN_16_BIT
public static final StringsEncoding LITTLEENDIAN_16_BIT
-
BIGENDIAN_32_BIT
public static final StringsEncoding BIGENDIAN_32_BIT
-
LITTLEENDIAN_32_BIT
public static final StringsEncoding LITTLEENDIAN_32_BIT
-
-
Method Detail
-
values
public static StringsEncoding[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StringsEncoding c : StringsEncoding.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StringsEncoding valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
get
public char get()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<StringsEncoding>
-
-