Enum Class EncodingResult.ResultType

java.lang.Object
java.lang.Enum<EncodingResult.ResultType>
org.apache.tika.detect.EncodingResult.ResultType
All Implemented Interfaces:
Serializable, Comparable<EncodingResult.ResultType>, Constable
Enclosing class:
EncodingResult

public static enum EncodingResult.ResultType extends Enum<EncodingResult.ResultType>
The nature of the evidence that produced this result.
  • Enum Constant Details

    • DECLARATIVE

      public static final EncodingResult.ResultType 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

      public static final EncodingResult.ResultType 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

      public static final EncodingResult.ResultType STATISTICAL
      Probabilistic inference from a statistical model. The confidence float is meaningful for ranking among candidates.
  • Method Details

    • values

      public static EncodingResult.ResultType[] 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

      public static EncodingResult.ResultType valueOf(String name)
      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 name
      NullPointerException - if the argument is null