org.apache.tika.parser.mp3
Class ID3v22Handler
java.lang.Object
org.apache.tika.parser.mp3.ID3v22Handler
- All Implemented Interfaces:
- ID3Tags
public class ID3v22Handler
- extends Object
- implements ID3Tags
This is used to parse ID3 Version 2.2 Tag information from an MP3 file,
if available.
- See Also:
- MP3 ID3 Version 2.2 specification
Fields inherited from interface org.apache.tika.parser.mp3.ID3Tags |
GENRES |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ID3v22Handler
public ID3v22Handler(ID3v2Frame frame)
throws IOException,
SAXException,
TikaException
- Throws:
IOException
SAXException
TikaException
extractGenre
protected static String extractGenre(String rawGenre)
getTagsPresent
public boolean getTagsPresent()
- Description copied from interface:
ID3Tags
- Does the file contain this kind of tags?
- Specified by:
getTagsPresent
in interface ID3Tags
getTitle
public String getTitle()
- Specified by:
getTitle
in interface ID3Tags
getArtist
public String getArtist()
- Specified by:
getArtist
in interface ID3Tags
getAlbum
public String getAlbum()
- Specified by:
getAlbum
in interface ID3Tags
getYear
public String getYear()
- Specified by:
getYear
in interface ID3Tags
getComposer
public String getComposer()
- Specified by:
getComposer
in interface ID3Tags
getComments
public List<ID3Tags.ID3Comment> getComments()
- Description copied from interface:
ID3Tags
- Retrieves the comments, if any.
Files may have more than one comment, but normally only
one with any language/description pair.
- Specified by:
getComments
in interface ID3Tags
getGenre
public String getGenre()
- Specified by:
getGenre
in interface ID3Tags
getTrackNumber
public String getTrackNumber()
- Specified by:
getTrackNumber
in interface ID3Tags
Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.