public class DeprecatedStreamingZipContainerDetector extends Object implements org.apache.tika.detect.Detector
| Constructor and Description |
|---|
DeprecatedStreamingZipContainerDetector() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.tika.mime.MediaType |
detect(InputStream is,
org.apache.tika.metadata.Metadata metadata) |
public DeprecatedStreamingZipContainerDetector()
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.Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.