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 |
getArtist() |
List<ID3Tags.ID3Comment> |
getComments()
Retrieves the comments, if any.
|
String |
getComposer()
ID3v1 doesn't have composers,
so returns null;
|
String |
getGenre() |
boolean |
getTagsPresent()
Does the file contain this kind of tags?
|
String |
getTitle() |
String |
getTrackNumber() |
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 List<ID3Tags.ID3Comment> getComments()
ID3Tags
getComments
in interface ID3Tags
public String getTrackNumber()
getTrackNumber
in interface ID3Tags
public String getComposer()
getComposer
in interface ID3Tags
Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.