org.apache.tika.parser.mp3
Class Mp3Parser
java.lang.Object
org.apache.tika.parser.mp3.Mp3Parser
- All Implemented Interfaces:
- java.io.Serializable, Parser
public class Mp3Parser
- extends java.lang.Object
- implements Parser
The Mp3Parser is used to parse ID3 Version 1 Tag information
from an MP3 file, if available.
- See Also:
- MP3 ID3 Version 1 specification,
MP3 ID3 Version 2.4 Structure Specification,
MP3 ID3 Version 2.4 Frames Specification,
Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Mp3Parser
public Mp3Parser()
getSupportedTypes
public java.util.Set<MediaType> getSupportedTypes(ParseContext context)
- Specified by:
getSupportedTypes in interface Parser
parse
public void parse(java.io.InputStream stream,
org.xml.sax.ContentHandler handler,
Metadata metadata,
ParseContext context)
throws java.io.IOException,
org.xml.sax.SAXException,
TikaException
- Specified by:
parse in interface Parser
- Throws:
java.io.IOException
org.xml.sax.SAXException
TikaException
parse
public void parse(java.io.InputStream stream,
org.xml.sax.ContentHandler handler,
Metadata metadata)
throws java.io.IOException,
org.xml.sax.SAXException,
TikaException
- Deprecated. This method will be removed in Apache Tika 1.0.
- Specified by:
parse in interface Parser
- Throws:
java.io.IOException
org.xml.sax.SAXException
TikaException
getAllTagHandlers
protected static Mp3Parser.ID3TagsAndAudio getAllTagHandlers(java.io.InputStream stream,
org.xml.sax.ContentHandler handler)
throws java.io.IOException,
org.xml.sax.SAXException,
TikaException
- Scans the MP3 frames for ID3 tags, and creates ID3Tag Handlers
for each supported set of tags.
- Throws:
java.io.IOException
org.xml.sax.SAXException
TikaException
Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.