Class OggDetector

java.lang.Object
org.apache.tika.detect.ogg.OggDetector
All Implemented Interfaces:
Serializable, org.apache.tika.config.SelfConfiguring, org.apache.tika.detect.Detector

public class OggDetector extends Object implements org.apache.tika.detect.Detector
Detector for identifying specific file types stored within an Ogg container. Xiph provide a fairly unhelpful guide to mimetypes at https://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions but we try to use more specific ones, as given by the Tika mimetypes xml file.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.apache.tika.mime.MediaType
     
    static final org.apache.tika.mime.MediaType
     
    static final org.apache.tika.mime.MediaType
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.tika.mime.MediaType
    detect(org.apache.tika.io.TikaInputStream tis, org.apache.tika.metadata.Metadata metadata, org.apache.tika.parser.ParseContext parseContext)
     
    protected static org.apache.tika.mime.MediaType
    toMediaType(org.gagravarr.ogg.OggStreamIdentifier.OggStreamType type)
    Converts from vorbis-java type to Tika's type

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • OGG_GENERAL

      public static final org.apache.tika.mime.MediaType OGG_GENERAL
    • OGG_AUDIO

      public static final org.apache.tika.mime.MediaType OGG_AUDIO
    • OGG_VIDEO

      public static final org.apache.tika.mime.MediaType OGG_VIDEO
  • Constructor Details

    • OggDetector

      public OggDetector()
  • 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) throws IOException
      Specified by:
      detect in interface org.apache.tika.detect.Detector
      Throws:
      IOException
    • toMediaType

      protected static org.apache.tika.mime.MediaType toMediaType(org.gagravarr.ogg.OggStreamIdentifier.OggStreamType type)
      Converts from vorbis-java type to Tika's type