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, org.apache.tika.exception.TikaException
IOExceptionSAXExceptionorg.apache.tika.exception.TikaExceptionprotected ID3v1Handler(byte[] tagData)
throws IOException,
SAXException,
org.apache.tika.exception.TikaException
tagData - Must be the last 128 bytesIOExceptionSAXExceptionorg.apache.tika.exception.TikaExceptionpublic boolean getTagsPresent()
ID3TagsgetTagsPresent in interface ID3Tagspublic List<ID3Tags.ID3Comment> getComments()
ID3TagsgetComments in interface ID3Tagspublic String getTrackNumber()
getTrackNumber in interface ID3Tagspublic String getComposer()
getComposer in interface ID3TagsCopyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.