Home » Tika Extracting MP4 File

Tika Extracting MP4 File

by Online Tutorials Library

Tika MP4 File Extraction

In Tika, MP4Parser is a class which is used to extract content and data from the Mp4 file. This class is located inside the org.apache.tika.parser.mp4 package.

It contains the various constructors and methods. See the following tables.

Tika MP4Parser Constructor

Following are the constructors of MP4Parser class.

Constructor Description
public MP4Parser() It is used to create instance of the class.

Tika MP4Parser Methods

Following are the methods of MP4Parser class.

Methods Description
public Set<MediaType> getSupportedTypes(ParseContext context) It returns the set of media types supported by this parser when used with the given parse context.
public void parse(InputStream stream, ContentHandler handler, Metadata metadata, ParseContext context) throws IOException, SAXException, TikaException It parses a document stream into a sequence of XHTML SAX events. Fills in related document metadata in the given metadata object.

Tika MP4 Parse Example

In the following example, we are extracting a MP4 media file. See the example.


Tika MP4 File Extraction

You may also like