org.apache.tika.parser.mp3
Class Mp3Parser
java.lang.Object
org.apache.tika.parser.AbstractParser
org.apache.tika.parser.mp3.Mp3Parser
- All Implemented Interfaces:
- Serializable, org.apache.tika.parser.Parser
public class Mp3Parser
- extends org.apache.tika.parser.AbstractParser
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 org.apache.tika.parser.AbstractParser |
parse |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Mp3Parser
public Mp3Parser()
getSupportedTypes
public Set<org.apache.tika.mime.MediaType> getSupportedTypes(org.apache.tika.parser.ParseContext context)
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
- Throws:
IOException
SAXException
org.apache.tika.exception.TikaException
getAllTagHandlers
protected static Mp3Parser.ID3TagsAndAudio getAllTagHandlers(InputStream stream,
ContentHandler handler)
throws IOException,
SAXException,
org.apache.tika.exception.TikaException
- Scans the MP3 frames for ID3 tags, and creates ID3Tag Handlers
for each supported set of tags.
- Throws:
IOException
SAXException
org.apache.tika.exception.TikaException
Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.