Class EncodingDetectorContext.Result

java.lang.Object
org.apache.tika.detect.EncodingDetectorContext.Result
Enclosing class:
EncodingDetectorContext

public static class EncodingDetectorContext.Result extends Object
A single detector's contribution: its ranked list of candidates and its name.
  • Constructor Details

  • Method Details

    • getEncodingResults

      public List<EncodingResult> getEncodingResults()
      All ranked results from this detector, highest confidence first.
    • getCharset

      public Charset getCharset()
      The top-ranked charset from this detector.
    • getConfidence

      public float getConfidence()
      The confidence of the top-ranked result from this detector.
    • getResultType

      public EncodingResult.ResultType getResultType()
      The EncodingResult.ResultType of the top-ranked result from this detector.
    • getDetectorName

      public String getDetectorName()
    • toString

      public String toString()
      Overrides:
      toString in class Object