Package org.apache.tika.detect.zip
Class DeprecatedStreamingZipContainerDetector
- java.lang.Object
-
- org.apache.tika.detect.zip.DeprecatedStreamingZipContainerDetector
-
- All Implemented Interfaces:
Serializable,org.apache.tika.detect.Detector
public class DeprecatedStreamingZipContainerDetector extends Object implements org.apache.tika.detect.Detector
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DeprecatedStreamingZipContainerDetector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.tika.mime.MediaTypedetect(InputStream is, org.apache.tika.metadata.Metadata metadata)
-
-
-
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:
-
-