public class ID3v1Handler extends Object implements ID3Tags
ID3Tags.ID3Comment| Modifier | Constructor and Description |
|---|---|
protected |
ID3v1Handler(byte[] tagData)
Creates from the last 128 bytes of a stream.
|
|
ID3v1Handler(InputStream stream,
ContentHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlbum() |
String |
getAlbumArtist()
ID3v1 doesn't have album-wide artists,
so returns null;
|
String |
getArtist()
The Artist for the track
|
List<ID3Tags.ID3Comment> |
getComments()
Retrieves the comments, if any.
|
String |
getCompilation()
ID3v1 doesn't have compilations,
so returns null;
|
String |
getComposer()
ID3v1 doesn't have composers,
so returns null;
|
String |
getDisc()
ID3v1 doesn't have disc numbers,
so returns null;
|
String |
getGenre() |
boolean |
getTagsPresent()
Does the file contain this kind of tags?
|
String |
getTitle() |
String |
getTrackNumber()
The number of the track within the album / recording
|
String |
getYear() |
public ID3v1Handler(InputStream stream, ContentHandler handler) throws IOException, SAXException, TikaException
IOExceptionSAXExceptionTikaExceptionprotected ID3v1Handler(byte[] tagData)
throws IOException,
SAXException,
TikaException
tagData - Must be the last 128 bytesIOExceptionSAXExceptionTikaExceptionpublic boolean getTagsPresent()
ID3TagsgetTagsPresent in interface ID3Tagspublic String getArtist()
ID3Tagspublic List<ID3Tags.ID3Comment> getComments()
ID3TagsgetComments in interface ID3Tagspublic String getTrackNumber()
ID3TagsgetTrackNumber in interface ID3Tagspublic String getComposer()
getComposer in interface ID3Tagspublic String getAlbumArtist()
getAlbumArtist in interface ID3Tagspublic String getDisc()
public String getCompilation()
getCompilation in interface ID3TagsCopyright © 2007–2023 The Apache Software Foundation. All rights reserved.