Class 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:
    Serialized Form
    • Field Detail

      • 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 Detail

      • GZipSpecializationDetector

        public GZipSpecializationDetector()
    • Method Detail

      • 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