Package org.apache.tika.parser.mp3
Interface ID3Tags
-
- All Known Implementing Classes:
CompositeTagHandler,ID3v1Handler,ID3v22Handler,ID3v23Handler,ID3v24Handler
public interface ID3TagsInterface that defines the common interface for ID3 tag parsers, such as ID3v1 and ID3v2.3. Implementations should return NULL if the file lacks a given tag, or if the tag isn't defined for the version. Note that so far, only the ID3v1 core tags are listed here. In future, we may wish to add more to cover the extra tags that our ID3v2 handlers can produce.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classID3Tags.ID3CommentRepresents a comments in ID3 (especially ID3 v2), where are made up of several parts
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]GENRESList of predefined genres.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetAlbum()java.lang.StringgetAlbumArtist()The Artist for the overall album / compilation of albumsjava.lang.StringgetArtist()The Artist for the trackjava.util.List<ID3Tags.ID3Comment>getComments()Retrieves the comments, if any.java.lang.StringgetCompilation()java.lang.StringgetComposer()java.lang.StringgetDisc()The number of the disc this belongs to, within the setjava.lang.StringgetGenre()booleangetTagsPresent()Does the file contain this kind of tags?java.lang.StringgetTitle()java.lang.StringgetTrackNumber()The number of the track within the album / recordingjava.lang.StringgetYear()
-
-
-
Field Detail
-
GENRES
static final java.lang.String[] GENRES
List of predefined genres. See http://www.id3.org/id3v2-00
-
-
Method Detail
-
getTagsPresent
boolean getTagsPresent()
Does the file contain this kind of tags?
-
getTitle
java.lang.String getTitle()
-
getArtist
java.lang.String getArtist()
The Artist for the track
-
getAlbumArtist
java.lang.String getAlbumArtist()
The Artist for the overall album / compilation of albums
-
getAlbum
java.lang.String getAlbum()
-
getComposer
java.lang.String getComposer()
-
getCompilation
java.lang.String getCompilation()
-
getComments
java.util.List<ID3Tags.ID3Comment> getComments()
Retrieves the comments, if any. Files may have more than one comment, but normally only one with any language/description pair.
-
getGenre
java.lang.String getGenre()
-
getYear
java.lang.String getYear()
-
getTrackNumber
java.lang.String getTrackNumber()
The number of the track within the album / recording
-
getDisc
java.lang.String getDisc()
The number of the disc this belongs to, within the set
-
-