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
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 Summary
FieldsModifier and TypeFieldDescriptionstatic org.apache.tika.mime.MediaTypestatic org.apache.tika.mime.MediaTypestatic org.apache.tika.mime.MediaTypestatic org.apache.tika.mime.MediaTypestatic org.apache.tika.mime.MediaTypestatic org.apache.tika.mime.MediaTypestatic org.apache.tika.mime.MediaTypestatic org.apache.tika.mime.MediaType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.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 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
-
detectXMLOnKeys
-
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
-