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
IOException
SAXException
TikaException
protected ID3v1Handler(byte[] tagData) throws IOException, SAXException, TikaException
tagData
- Must be the last 128 bytesIOException
SAXException
TikaException
public boolean getTagsPresent()
ID3Tags
getTagsPresent
in interface ID3Tags
public String getArtist()
ID3Tags
public List<ID3Tags.ID3Comment> getComments()
ID3Tags
getComments
in interface ID3Tags
public String getTrackNumber()
ID3Tags
getTrackNumber
in interface ID3Tags
public String getComposer()
getComposer
in interface ID3Tags
public String getAlbumArtist()
getAlbumArtist
in interface ID3Tags
public String getDisc()
public String getCompilation()
getCompilation
in interface ID3Tags
Copyright © 2007-2015 The Apache Software Foundation. All Rights Reserved.