Package org.apache.tika.detect.zip
Class DeprecatedStreamingZipContainerDetector
java.lang.Object
org.apache.tika.detect.zip.DeprecatedStreamingZipContainerDetector
- All Implemented Interfaces:
Serializable,org.apache.tika.config.SelfConfiguring,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(org.apache.tika.io.TikaInputStream tis, org.apache.tika.metadata.Metadata metadata, org.apache.tika.parser.ParseContext parseContext)
-
Constructor Details
-
DeprecatedStreamingZipContainerDetector
public DeprecatedStreamingZipContainerDetector()
-
-
Method Details
-
detect
public org.apache.tika.mime.MediaType detect(org.apache.tika.io.TikaInputStream tis, org.apache.tika.metadata.Metadata metadata, org.apache.tika.parser.ParseContext parseContext) - Specified by:
detectin interfaceorg.apache.tika.detect.Detector- Parameters:
tis- 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:
-