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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.tika.mime.MediaTypedetect(InputStream is, org.apache.tika.metadata.Metadata metadata)
-
Constructor Details
-
DeprecatedStreamingZipContainerDetector
public DeprecatedStreamingZipContainerDetector()
-
-
Method Details
-
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:
-