Package org.apache.tika.detect.apple
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.tika.mime.MediaTypeBITUNESstatic org.apache.tika.mime.MediaTypeBMEMGRAPHstatic org.apache.tika.mime.MediaTypeBPLISTstatic org.apache.tika.mime.MediaTypeBWEBARCHIVEstatic org.apache.tika.mime.MediaTypeITUNESstatic org.apache.tika.mime.MediaTypeMEMGRAPHstatic org.apache.tika.mime.MediaTypePLISTstatic org.apache.tika.mime.MediaTypeWEBARCHIVE
-
Constructor Summary
Constructors Constructor Description BPListDetector()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.tika.mime.MediaTypedetect(InputStream input, org.apache.tika.metadata.Metadata metadata)static org.apache.tika.mime.MediaTypedetectOnKeys(Set<String> keySet)static org.apache.tika.mime.MediaTypedetectXMLOnKeys(Set<String> keySet)
-
-
-
Field Detail
-
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
-
-
Method Detail
-
detect
public org.apache.tika.mime.MediaType detect(InputStream input, org.apache.tika.metadata.Metadata metadata) throws IOException
- Specified by:
detectin interfaceorg.apache.tika.detect.Detector- Parameters:
input- input stream must support resetmetadata- input metadata for the document- Returns:
- Throws:
IOException
-
-