public class StreamingZipContainerDetector extends Object implements org.apache.tika.detect.Detector
| Constructor and Description |
|---|
StreamingZipContainerDetector() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.tika.mime.MediaType |
detect(InputStream is,
org.apache.tika.metadata.Metadata metadata) |
static org.apache.tika.mime.MediaType |
parseOOXMLContentTypes(InputStream is) |
static Set<String> |
parseOOXMLRels(InputStream is) |
public org.apache.tika.mime.MediaType detect(InputStream is, org.apache.tika.metadata.Metadata metadata)
detect in interface org.apache.tika.detect.Detectoris - 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 a BoundedInputStream or similar
if you want to protect against reading the entire stream.public static Set<String> parseOOXMLRels(InputStream is)
public static org.apache.tika.mime.MediaType parseOOXMLContentTypes(InputStream is)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.