|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectentagged.audioformats.generic.AbstractTag
entagged.audioformats.mp3.Id3v2Tag
public class Id3v2Tag
This class is the implementation of Tag of the
ID3V2 tagging system used with MP3s.
| Field Summary | |
|---|---|
static String |
DEFAULT_ENCODING
This is the default encoding to use for new frames. The code indirectly will choose the UTF-16LE variant with BOM. |
static byte |
ID3V22
This constant is used to identify the minor version 2 of the ID3V2 tag. |
static byte |
ID3V23
This constant is used to identify the minor version 3 of the ID3V2 tag. |
static byte |
ID3V24
This constant is used to identify the minor version 4 of the ID3V2 tag. |
| Fields inherited from class entagged.audioformats.generic.AbstractTag |
|---|
commonNumber, fields |
| Fields inherited from interface entagged.audioformats.Tag |
|---|
DEFAULT_GENRES |
| Constructor Summary | |
|---|---|
Id3v2Tag()
Creates a default instance. |
|
Id3v2Tag(byte version)
Creates an instance. |
|
| Method Summary | |
|---|---|
protected TagField |
createAlbumField(String content)
(overridden) |
protected TagField |
createArtistField(String content)
(overridden) |
protected TagField |
createCommentField(String content)
(overridden) |
protected TagField |
createGenreField(String content)
(overridden) |
protected TagField |
createTitleField(String content)
(overridden) |
protected TagField |
createTrackField(String content)
(overridden) |
protected TagField |
createYearField(String content)
(overridden) |
protected String |
getAlbumId()
(overridden) Returns the frame id (name) for the album frame |
protected String |
getArtistId()
(overridden) Returns the frame id (name) for the artist frame |
List |
getComment()
(overridden) |
protected String |
getCommentId()
(overridden) Returns the frame id (name) for the comment frame |
protected String |
getGenreId()
(overridden) Returns the frame id (name) for the genre frame |
byte |
getRepresentedVersion()
Returns the Id3v2 minor version identifier, the tag represents. Values are ID3V22, ID3V23 and ID3V24. |
protected String |
getTitleId()
(overridden) Returns the frame id (name) for the title frame |
protected String |
getTrackId()
(overridden) Returns the frame id (name) for the track frame |
protected String |
getYearId()
(overridden) Returns the frame id (name) for the year frame |
boolean |
hasId3v1()
Determines whether the values of a parallel stored ID3V1 tag are merged whithin this object. In fact no value may have made it into this, but there is an ID3V1 tag present in the original file. |
protected void |
hasId3v1(boolean b)
This method sets the ID3V1 tag present property. |
protected boolean |
isAllowedEncoding(String enc)
(overridden) |
protected void |
setRepresentedVersion(byte representedVersion)
|
String |
toString()
(overridden) |
| Methods inherited from class entagged.audioformats.generic.AbstractTag |
|---|
add, addAlbum, addArtist, addComment, addGenre, addTitle, addTrack, addYear, get, getAlbum, getArtist, getFields, getFirstAlbum, getFirstArtist, getFirstComment, getFirstGenre, getFirstTitle, getFirstTrack, getFirstYear, getGenre, getTitle, getTrack, getYear, hasCommonFields, hasField, isEmpty, merge, set, setAlbum, setArtist, setComment, setEncoding, setGenre, setTitle, setTrack, setYear |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static String DEFAULT_ENCODING
public static byte ID3V22
public static byte ID3V23
public static byte ID3V24
| Constructor Detail |
|---|
public Id3v2Tag()
ID3V22.
public Id3v2Tag(byte version)
version - The version to represent. representedVersion.| Method Detail |
|---|
protected TagField createAlbumField(String content)
createAlbumField in class AbstractTagcontent - The content of the created field.
AbstractTag.createAlbumField(java.lang.String)protected TagField createArtistField(String content)
createArtistField in class AbstractTagcontent - The content of the created field.
AbstractTag.createArtistField(java.lang.String)protected TagField createCommentField(String content)
createCommentField in class AbstractTagcontent - The content of the created field.
AbstractTag.createCommentField(java.lang.String)protected TagField createGenreField(String content)
createGenreField in class AbstractTagcontent - The content of the created field.
AbstractTag.createGenreField(java.lang.String)protected TagField createTitleField(String content)
createTitleField in class AbstractTagcontent - The content of the created field.
AbstractTag.createTitleField(java.lang.String)protected TagField createTrackField(String content)
createTrackField in class AbstractTagcontent - The content of the created field.
AbstractTag.createTrackField(java.lang.String)protected TagField createYearField(String content)
createYearField in class AbstractTagcontent - The content of the created field.
AbstractTag.createYearField(java.lang.String)protected String getAlbumId()
getAlbumId in class AbstractTagAbstractTag.getAlbumId()protected String getArtistId()
getArtistId in class AbstractTagAbstractTag.getArtistId()public List getComment()
getComment in interface TaggetComment in class AbstractTagAbstractTag.getComment()protected String getCommentId()
getCommentId in class AbstractTagAbstractTag.getCommentId()protected String getGenreId()
getGenreId in class AbstractTagAbstractTag.getGenreId()public byte getRepresentedVersion()
ID3V22, ID3V23 and ID3V24.
protected String getTitleId()
getTitleId in class AbstractTagAbstractTag.getTitleId()protected String getTrackId()
getTrackId in class AbstractTagAbstractTag.getTrackId()protected String getYearId()
getYearId in class AbstractTagAbstractTag.getYearId()public boolean hasId3v1()
true if there was a ID3V1 tag present.protected void hasId3v1(boolean b)
b - the value to set.hasId3v1()protected boolean isAllowedEncoding(String enc)
isAllowedEncoding in class AbstractTagenc - charset encoding.
true if the given encoding can be used.AbstractTag.isAllowedEncoding(java.lang.String)public String toString()
toString in interface TagtoString in class AbstractTagObject.toString()protected void setRepresentedVersion(byte representedVersion)
representedVersion - The representedVersion to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||