Package org.apache.tika.detect
Enum Class EncodingResult.ResultType
- All Implemented Interfaces:
Serializable,Comparable<EncodingResult.ResultType>,Constable
- Enclosing class:
- EncodingResult
The nature of the evidence that produced this result.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe document explicitly declared its encoding (BOM, HTML meta charset).Probabilistic inference from a statistical model.The encoding is proven by byte-grammar structure (ISO-2022 escape sequences, UTF-8 multibyte validation). -
Method Summary
Modifier and TypeMethodDescriptionstatic EncodingResult.ResultTypeReturns the enum constant of this class with the specified name.static EncodingResult.ResultType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DECLARATIVE
The document explicitly declared its encoding (BOM, HTML meta charset). Authoritative about author intent; preferred over inferred results when consistent with the actual bytes. -
STRUCTURAL
The encoding is proven by byte-grammar structure (ISO-2022 escape sequences, UTF-8 multibyte validation). Not a guess — the byte patterns are only valid in this encoding. -
STATISTICAL
Probabilistic inference from a statistical model. The confidence float is meaningful for ranking among candidates.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-