public final class Id3v2Tag extends Id3Tag
Represents an ID3v2 tag. Please find more information at https://en.wikipedia.org/wiki/ID3#ID3v2.
Constructor and Description |
---|
Id3v2Tag()
Initializes a new instance of the
Id3v2Tag class. |
Modifier and Type | Method and Description |
---|---|
String |
getAlbum()
Gets the album.
|
String |
getArtist()
Gets the artist.
|
String |
getBand()
Gets the band.
|
String |
getBitsPerMinute()
Gets the bits per minute.
|
String |
getComment()
Gets the comment.
|
String |
getComposers()
Gets the composers.
|
String |
getContentType()
Gets content type.
|
String |
getCopyright()
Gets the copyright.
|
String |
getDate()
Gets the date.
|
String |
getEncodedBy()
Gets the encoded by.
|
TagFrame[] |
getFrames()
Gets array of
TagFrame presented in ID3v2 tag. |
byte[] |
getImageCover()
Gets the image cover bytes.
|
String |
getISRC()
Gets the ISRC.
|
String |
getLengthInMilliseconds()
Gets the length in milliseconds.
|
String |
getMusicalKey()
Gets the musical key.
|
String |
getOriginalAlbum()
Gets the original album.
|
Integer |
getPlayCounter()
Gets the play counter.
|
String |
getPublisher()
Gets the publisher.
|
String |
getSizeInBytes()
Gets the size in bytes.
|
String |
getSoftwareHardware()
Gets the software/hardware.
|
String |
getSubtitle()
Gets the subtitle.
|
int |
getTagSize()
Gets the size of the tag.
|
String |
getTime()
Gets the time.
|
String |
getTitle()
Gets the title.
|
String |
getTrackNumber()
Gets the track number.
|
String |
getVersion()
Gets the ID3 version.
|
String |
getYear()
Gets the year.
|
TagFrame[] |
readFrames(String tag) |
ThumbnailMetadata |
readThumbnail()
Reads the image cover data from APIC tag.
|
void |
removeImageCover()
Removes the image cover data in APIC tag.
|
void |
setAlbum(String value)
Sets the album.
|
void |
setArtist(String value)
Sets the artist.
|
void |
setBand(String value)
Sets the band.
|
void |
setBitsPerMinute(String value)
Sets the bits per minute.
|
void |
setComment(String value)
Sets the comment.
|
void |
setComposers(String value)
Sets the composers.
|
void |
setContentType(String value)
Sets content type.
|
void |
setCopyright(String value)
Sets the copyright.
|
void |
setEncodedBy(String value)
Sets the encoded by.
|
void |
setImageCover(byte[] value)
Sets the image cover bytes.
|
void |
setISRC(String value)
Sets the ISRC.
|
void |
setLengthInMilliseconds(String value)
Sets the length in milliseconds.
|
void |
setMusicalKey(String value)
Sets the musical key.
|
void |
setOriginalAlbum(String value)
Sets the original album.
|
void |
setPublisher(String value)
Sets the publisher.
|
void |
setSizeInBytes(String value)
Sets the size in bytes.
|
void |
setSoftwareHardware(String value)
Sets the software/hardware.
|
void |
setSubtitle(String value)
Sets the subtitle.
|
void |
setTime(String value)
Sets the time.
|
void |
setTitle(String value)
Sets the title.
|
void |
setTrackNumber(String value)
Sets the track number.
|
void |
setYear(String value)
Sets the year.
|
getByType, getKeys, getMetadataType, iterator, readByStringKey
public String getVersion()
Gets the ID3 version.
getVersion
in class Id3Tag
public final int getTagSize()
Gets the size of the tag.
public final String getAlbum()
Gets the album. Represents TALB tag.
public final void setAlbum(String value)
Sets the album. Represents TALB tag.
value
- The album.public final String getArtist()
Gets the artist. Represents TPE1 tag.
public final void setArtist(String value)
Sets the artist. Represents TPE1 tag.
value
- The artist.public final String getBand()
Gets the band. Represents TPE2 tag.
public final void setBand(String value)
Sets the band. Represents TPE2 tag.
value
- The band.public final String getBitsPerMinute()
Gets the bits per minute. Represents TBPM tag.
public final void setBitsPerMinute(String value)
Sets the bits per minute. Represents TBPM tag.
value
- The bits per minute.public final String getComment()
Gets the comment. Represents COMM tag.
public final void setComment(String value)
Sets the comment. Represents COMM tag.
value
- The comment.public final String getComposers()
Gets the composers. Represents TCOM tag.
public final void setComposers(String value)
Sets the composers. Represents TCOM tag.
value
- The composers.public final String getContentType()
Gets content type. Represents TCON tag.
public final void setContentType(String value)
Sets content type. Represents TCON tag.
value
- Content type.public final String getCopyright()
Gets the copyright. Represents TCOP tag.
public final void setCopyright(String value)
Sets the copyright. Represents TCOP tag.
value
- The copyright.
public final String getDate()
Gets the date. Represents TDAT tag. This field is always four characters long.
public final String getEncodedBy()
Gets the encoded by. Represents TENC tag.
public final void setEncodedBy(String value)
Sets the encoded by. Represents TENC tag.
value
- The encoded by.public final String getPublisher()
Gets the publisher. Represents TPUB tag.
public final void setPublisher(String value)
Sets the publisher. Represents TPUB tag.
value
- The publisher.public final String getTime()
Gets the time. Represents TIME tag. It has HHMM format.
public final void setTime(String value)
Sets the time. Represents TIME tag. It has HHMM format.
value
- The time.public final String getTitle()
Gets the title. Represents TIT2 tag.
public final void setTitle(String value)
Sets the title. Represents TIT2 tag.
value
- The title.public final String getSubtitle()
Gets the subtitle. Represents TIT3 tag.
public final void setSubtitle(String value)
Sets the subtitle. Represents TIT3 tag.
value
- The subtitle.public final String getMusicalKey()
Gets the musical key. Represents TKEY tag.
public final void setMusicalKey(String value)
Sets the musical key. Represents TKEY tag.
value
- The musical key.public final String getLengthInMilliseconds()
Gets the length in milliseconds. Represents TLEN tag.
public final void setLengthInMilliseconds(String value)
Sets the length in milliseconds. Represents TLEN tag.
value
- The length in milliseconds.public final String getOriginalAlbum()
Gets the original album. Represents TOAL tag.
public final void setOriginalAlbum(String value)
Sets the original album. Represents TOAL tag.
value
- The original album.public final String getTrackNumber()
Gets the track number. Represents TRCK tag.
public final void setTrackNumber(String value)
Sets the track number. Represents TRCK tag.
value
- The track number.public final String getSizeInBytes()
Gets the size in bytes. Represents TSIZ tag.
public final void setSizeInBytes(String value)
Sets the size in bytes. Represents TSIZ tag.
value
- The size in bytes.public final String getISRC()
Gets the ISRC. Represents TSRC tag.
public final void setISRC(String value)
Sets the ISRC. Represents TSRC tag.
value
- The ISRC.public final String getSoftwareHardware()
Gets the software/hardware. Represents TSSE tag.
public final void setSoftwareHardware(String value)
Sets the software/hardware. Represents TSSE tag.
value
- The software/hardware.public final String getYear()
Gets the year. Represents TYER tag. Has always four characters long (until the year 10000).
public final void setYear(String value)
Sets the year. Represents TYER tag. Has always four characters long (until the year 10000).
value
- The year.public final byte[] getImageCover()
Gets the image cover bytes.
public final void setImageCover(byte[] value)
Sets the image cover bytes.
value
- The image cover.public final Integer getPlayCounter()
Gets the play counter. Represents PCNT tag.
public final TagFrame[] getFrames()
Gets array of TagFrame
presented in ID3v2 tag.
public final void removeImageCover()
Removes the image cover data in APIC tag.
public final ThumbnailMetadata readThumbnail()
Reads the image cover data from APIC tag.
ThumbnailMetadata
.Copyright © 2019. All rights reserved.