Class BPListDetector

java.lang.Object
org.apache.tika.detect.apple.BPListDetector
All Implemented Interfaces:
Serializable, org.apache.tika.detect.Detector

public class BPListDetector extends Object implements org.apache.tika.detect.Detector
Detector for BPList with utility functions for PList.

Without significant refactoring, this can't easily work as a true detector on plist subtypes. Rather, for now, we require the file to be parsed and then the parser adds the subtype for xml-based plists.

Since:
1.25
See Also:
  • Field Details

    • MEMGRAPH

      public static org.apache.tika.mime.MediaType MEMGRAPH
    • WEBARCHIVE

      public static org.apache.tika.mime.MediaType WEBARCHIVE
    • PLIST

      public static org.apache.tika.mime.MediaType PLIST
    • ITUNES

      public static org.apache.tika.mime.MediaType ITUNES
    • BMEMGRAPH

      public static org.apache.tika.mime.MediaType BMEMGRAPH
    • BWEBARCHIVE

      public static org.apache.tika.mime.MediaType BWEBARCHIVE
    • BPLIST

      public static org.apache.tika.mime.MediaType BPLIST
    • BITUNES

      public static org.apache.tika.mime.MediaType BITUNES
  • Constructor Details

    • BPListDetector

      public BPListDetector()
  • Method Details

    • detectOnKeys

      public static org.apache.tika.mime.MediaType detectOnKeys(Set<String> keySet)
    • detectXMLOnKeys

      public static org.apache.tika.mime.MediaType detectXMLOnKeys(Set<String> keySet)
    • detect

      public org.apache.tika.mime.MediaType detect(InputStream input, org.apache.tika.metadata.Metadata metadata) throws IOException
      Specified by:
      detect in interface org.apache.tika.detect.Detector
      Parameters:
      input - input stream must support reset
      metadata - input metadata for the document
      Returns:
      Throws:
      IOException