Package org.apache.tika.detect.gzip
Class GZipSpecializationDetector
java.lang.Object
org.apache.tika.detect.gzip.GZipSpecializationDetector
- All Implemented Interfaces:
Serializable,org.apache.tika.detect.Detector
This is designed to detect commonly gzipped file types such as warc.gz.
This is a first step. We still need to implement tar.gz and svg.gz and ???
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.tika.mime.MediaTypedetect(InputStream input, org.apache.tika.metadata.Metadata metadata)
-
Field Details
-
GZ
public static org.apache.tika.mime.MediaType GZ -
WARC_GZ
public static org.apache.tika.mime.MediaType WARC_GZ -
ARC_GZ
public static org.apache.tika.mime.MediaType ARC_GZ
-
-
Constructor Details
-
GZipSpecializationDetector
public GZipSpecializationDetector()
-
-
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- Throws:
IOException
-