Class MP4Parser

  • All Implemented Interfaces:
    Serializable, org.apache.tika.parser.Parser

    public class MP4Parser
    extends Object
    implements org.apache.tika.parser.Parser
    Parser for the MP4 media container format, as well as the older QuickTime format that MP4 is based on.

    This uses Drew Noakes' metadata-extractor: https://github.com/drewnoakes/metadata-extractor

    See Also:
    Serialized Form
    • Constructor Detail

      • MP4Parser

        public MP4Parser()
    • Method Detail

      • getSupportedTypes

        public Set<org.apache.tika.mime.MediaType> getSupportedTypes​(org.apache.tika.parser.ParseContext context)
        Specified by:
        getSupportedTypes in interface org.apache.tika.parser.Parser
      • parse

        public void parse​(InputStream stream,
                          ContentHandler handler,
                          org.apache.tika.metadata.Metadata metadata,
                          org.apache.tika.parser.ParseContext context)
                   throws IOException,
                          SAXException,
                          org.apache.tika.exception.TikaException
        Specified by:
        parse in interface org.apache.tika.parser.Parser
        Throws:
        IOException
        SAXException
        org.apache.tika.exception.TikaException