Class GZipSpecializationDetector

java.lang.Object
org.apache.tika.detect.gzip.GZipSpecializationDetector
All Implemented Interfaces:
Serializable, org.apache.tika.detect.Detector

public class GZipSpecializationDetector extends Object implements 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 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:
      detect in interface org.apache.tika.detect.Detector
      Throws:
      IOException