Package org.apache.tika.parser.pkg
Class StreamingZipContainerDetector
- java.lang.Object
-
- org.apache.tika.parser.pkg.StreamingZipContainerDetector
-
- All Implemented Interfaces:
Serializable,org.apache.tika.detect.Detector
public class StreamingZipContainerDetector extends Object implements org.apache.tika.detect.Detector
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StreamingZipContainerDetector()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.tika.mime.MediaTypedetect(InputStream is, org.apache.tika.metadata.Metadata metadata)static org.apache.tika.mime.MediaTypeparseOOXMLContentTypes(InputStream is)static Set<String>parseOOXMLRels(InputStream is)
-
-
-
Method Detail
-
detect
public org.apache.tika.mime.MediaType detect(InputStream is, org.apache.tika.metadata.Metadata metadata)
- Specified by:
detectin interfaceorg.apache.tika.detect.Detector- Parameters:
is- inputstream to read from. Callers must mark/reset the stream before/after this call to detect. This call does not close the stream! Depending on the file type, this call to detect may read the entire stream. Make sure to use aBoundedInputStreamor similar if you want to protect against reading the entire stream.- Returns:
-
parseOOXMLRels
public static Set<String> parseOOXMLRels(InputStream is)
-
parseOOXMLContentTypes
public static org.apache.tika.mime.MediaType parseOOXMLContentTypes(InputStream is)
-
-