Class CSVResult

java.lang.Object
org.apache.tika.parser.csv.CSVResult
All Implemented Interfaces:
Comparable<CSVResult>

public class CSVResult extends Object implements Comparable<CSVResult>
  • Constructor Details

    • CSVResult

      public CSVResult(double confidence, MediaType mediaType, Character delimiter)
  • Method Details

    • getMediaType

      public MediaType getMediaType()
    • getDelimiter

      public Character getDelimiter()
      Returns:
      returns the delimiter or null if the mediatype=text/plain
    • compareTo

      public int compareTo(CSVResult o)
      Sorts in descending order of confidence
      Specified by:
      compareTo in interface Comparable<CSVResult>
      Parameters:
      o -
      Returns:
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getConfidence

      public double getConfidence()