Package org.apache.tika.detect.zip
Class StreamingZipContainerDetector
java.lang.Object
org.apache.tika.detect.zip.DefaultZipContainerDetector
org.apache.tika.detect.zip.StreamingZipContainerDetector
- All Implemented Interfaces:
Serializable,org.apache.tika.detect.Detector
Currently only used in tests. Unlike
DefaultZipContainerDetector,
this will never try to open the File as a ZipFile; this relies solely
on streaming detection.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStreamingZipContainerDetector(List<ZipContainerDetector> zipDetectors) StreamingZipContainerDetector(org.apache.tika.config.ServiceLoader loader) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.tika.mime.MediaTypedetect(InputStream input, org.apache.tika.metadata.Metadata metadata) Methods inherited from class org.apache.tika.detect.zip.DefaultZipContainerDetector
getMarkLimit, setMarkLimit
-
Constructor Details
-
StreamingZipContainerDetector
public StreamingZipContainerDetector() -
StreamingZipContainerDetector
public StreamingZipContainerDetector(org.apache.tika.config.ServiceLoader loader) -
StreamingZipContainerDetector
-
-
Method Details
-
detect
public org.apache.tika.mime.MediaType detect(InputStream input, org.apache.tika.metadata.Metadata metadata) throws IOException - Specified by:
detectin interfaceorg.apache.tika.detect.Detector- Overrides:
detectin classDefaultZipContainerDetector- Throws:
IOException
-