Package org.apache.tika.parser.mp3
Class ID3v22Handler
java.lang.Object
org.apache.tika.parser.mp3.ID3v22Handler
- All Implemented Interfaces:
ID3Tags
This is used to parse ID3 Version 2.2 Tag information from an MP3 file,
if available.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.tika.parser.mp3.ID3Tags
ID3Tags.ID3Comment, ID3Tags.ID3Picture -
Field Summary
Fields inherited from interface org.apache.tika.parser.mp3.ID3Tags
GENRES, PICTURE_TYPES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringextractGenre(String rawGenre) getAlbum()The Artist for the overall album / compilation of albumsThe Artist for the trackRetrieves the comments, if any.ID3v22 doesn't have compilations, so returns null;The copyright message, if anygetDisc()The number of the disc this belongs to, within the setgetGenre()Retrieves the embedded pictures (e.g. cover art), if any.booleanDoes the file contain this kind of tags?getTitle()The number of the track within the album / recordinggetYear()
-
Constructor Details
-
ID3v22Handler
- Throws:
IOExceptionSAXExceptionTikaException
-
-
Method Details
-
extractGenre
-
getTagsPresent
public boolean getTagsPresent()Description copied from interface:ID3TagsDoes the file contain this kind of tags?- Specified by:
getTagsPresentin interfaceID3Tags
-
getTitle
-
getArtist
Description copied from interface:ID3TagsThe Artist for the track -
getAlbum
-
getYear
-
getComposer
- Specified by:
getComposerin interfaceID3Tags
-
getCopyright
Description copied from interface:ID3TagsThe copyright message, if any- Specified by:
getCopyrightin interfaceID3Tags
-
getComments
Description copied from interface:ID3TagsRetrieves the comments, if any. Files may have more than one comment, but normally only one with any language/description pair.- Specified by:
getCommentsin interfaceID3Tags
-
getPictures
Description copied from interface:ID3TagsRetrieves the embedded pictures (e.g. cover art), if any. Only ID3v2 tags can carry pictures, so this defaults to an empty list.- Specified by:
getPicturesin interfaceID3Tags
-
getGenre
-
getTrackNumber
Description copied from interface:ID3TagsThe number of the track within the album / recording- Specified by:
getTrackNumberin interfaceID3Tags
-
getAlbumArtist
Description copied from interface:ID3TagsThe Artist for the overall album / compilation of albums- Specified by:
getAlbumArtistin interfaceID3Tags
-
getDisc
Description copied from interface:ID3TagsThe number of the disc this belongs to, within the set -
getCompilation
ID3v22 doesn't have compilations, so returns null;- Specified by:
getCompilationin interfaceID3Tags
-