Package com.mpatric.mp3agic
Class ID3v1Tag
java.lang.Object
com.mpatric.mp3agic.ID3v1Tag
- All Implemented Interfaces:
ID3v1
public class ID3v1Tag extends Object implements ID3v1
-
Field Summary
Fields Modifier and Type Field Description static int
TAG_LENGTH
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description boolean
equals(Object obj)
String
getAlbum()
String
getArtist()
String
getComment()
int
getGenre()
String
getGenreDescription()
String
getTitle()
String
getTrack()
String
getVersion()
String
getYear()
int
hashCode()
void
packTag(byte[] bytes)
void
setAlbum(String album)
void
setArtist(String artist)
void
setComment(String comment)
void
setGenre(int genre)
void
setTitle(String title)
void
setTrack(String track)
void
setYear(String year)
byte[]
toBytes()
void
toBytes(byte[] bytes)
-
Field Details
-
TAG_LENGTH
public static final int TAG_LENGTH- See Also:
- Constant Field Values
-
-
Constructor Details
-
ID3v1Tag
public ID3v1Tag() -
ID3v1Tag
- Throws:
NoSuchTagException
-
-
Method Details
-
toBytes
public byte[] toBytes() -
toBytes
public void toBytes(byte[] bytes) -
packTag
public void packTag(byte[] bytes) -
getVersion
- Specified by:
getVersion
in interfaceID3v1
-
getTrack
-
setTrack
-
getArtist
-
setArtist
-
getTitle
-
setTitle
-
getAlbum
-
setAlbum
-
getYear
-
setYear
-
getGenre
public int getGenre() -
setGenre
public void setGenre(int genre) -
getGenreDescription
- Specified by:
getGenreDescription
in interfaceID3v1
-
getComment
- Specified by:
getComment
in interfaceID3v1
-
setComment
- Specified by:
setComment
in interfaceID3v1
-
hashCode
public int hashCode() -
equals
-