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 intTAG_LENGTH -
Constructor Summary
-
Method Summary
Modifier and Type Method Description booleanequals(Object obj)StringgetAlbum()StringgetArtist()StringgetComment()intgetGenre()StringgetGenreDescription()StringgetTitle()StringgetTrack()StringgetVersion()StringgetYear()inthashCode()voidpackTag(byte[] bytes)voidsetAlbum(String album)voidsetArtist(String artist)voidsetComment(String comment)voidsetGenre(int genre)voidsetTitle(String title)voidsetTrack(String track)voidsetYear(String year)byte[]toBytes()voidtoBytes(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:
getVersionin interfaceID3v1
-
getTrack
-
setTrack
-
getArtist
-
setArtist
-
getTitle
-
setTitle
-
getAlbum
-
setAlbum
-
getYear
-
setYear
-
getGenre
public int getGenre() -
setGenre
public void setGenre(int genre) -
getGenreDescription
- Specified by:
getGenreDescriptionin interfaceID3v1
-
getComment
- Specified by:
getCommentin interfaceID3v1
-
setComment
- Specified by:
setCommentin interfaceID3v1
-
hashCode
public int hashCode() -
equals
-