public final class Id3v1Tag extends Id3Tag
Represents ID3v1 tag. See more https://en.wikipedia.org/wiki/ID3#ID3v1.
Constructor and Description |
---|
Id3v1Tag()
Initializes a new instance of the
Id3v1Tag class. |
Modifier and Type | Method and Description |
---|---|
String |
getAlbum()
Gets the album.
|
String |
getArtist()
Gets the artist.
|
String |
getComment()
Gets the comment.
|
String |
getGenre()
Gets the genre string based on
GenreId , for example: Pop. |
int |
getGenreId()
Gets the genre identifier.
|
String |
getTitle()
Gets the title.
|
Integer |
getTrackNumber()
Gets the track number.
|
String |
getVersion()
Gets the ID3 version.
|
String |
getYear()
Gets the year.
|
void |
setAlbum(String value)
Sets the album.
|
void |
setArtist(String value)
Sets the artist.
|
void |
setComment(String value)
Sets the comment.
|
void |
setGenreId(int value)
Sets the genre identifier.
|
void |
setTitle(String value)
Sets the title.
|
void |
setTrackNumber(Integer value)
Sets the track number.
|
void |
setYear(String value)
Sets the year.
|
getKeys
getByType, getMetadataType, readByStringKey
public String getVersion()
Gets the ID3 version. It can be ID3 or ID3v1.1
getVersion
in class Id3Tag
public final String getArtist()
Gets the artist. Maximum length is 30 characters.
public final void setArtist(String value)
Sets the artist. Maximum length is 30 characters.
value
- The artist.public final String getAlbum()
Gets the album. Maximum length is 30 characters.
public final void setAlbum(String value)
Sets the album. Maximum length is 30 characters.
value
- The album.public final int getGenreId()
Gets the genre identifier. Full list of genres: http://id3.org/id3v2.3.0#Appendix_A_-_Genre_List_from_ID3v1.
public final void setGenreId(int value)
Sets the genre identifier. Full list of genres: http://id3.org/id3v2.3.0#Appendix_A_-_Genre_List_from_ID3v1.
value
- The genre identifier.public final String getGenre()
Gets the genre string based on GenreId
, for example: Pop.
public final String getComment()
Gets the comment. Maximum length is 30 characters.
public final void setComment(String value)
Sets the comment. Maximum length is 30 characters.
value
- The comment.public final String getTitle()
Gets the title.
public final void setTitle(String value)
Sets the title.
value
- The title.public final String getYear()
Gets the year. Maximum length is 4 characters.
public final void setYear(String value)
Sets the year. Maximum length is 4 characters.
value
- The year.public final Integer getTrackNumber()
Gets the track number. Presented in ID3v1.1 tag only.
TrackNumber
is positive integer then ID3 changes version to 'ID3v1.1' automatically.
public final void setTrackNumber(Integer value)
Sets the track number. Presented in ID3v1.1 tag only.
value
- The track number.
TrackNumber
is positive integer then ID3 changes version to 'ID3v1.1' automatically.
Copyright © 2018. All rights reserved.