FrameBodyWXXXpublic class FrameBodyWXXX extends AbstractFrameBodyUrlLink implements ID3v24FrameBody, ID3v23FrameBodyRepresents a user defined url |
Fields Summary |
---|
public static final String | URL_DISCOGS_RELEASE_SITE | public static final String | URL_WIKIPEDIA_RELEASE_SITE | public static final String | URL_OFFICIAL_RELEASE_SITE | public static final String | URL_DISCOGS_ARTIST_SITE | public static final String | URL_WIKIPEDIA_ARTIST_SITE | public static final String | URL_LYRICS_SITE |
Constructors Summary |
---|
public FrameBodyWXXX()Creates a new FrameBodyWXXX datatype.
this.setObjectValue(DataTypes.OBJ_TEXT_ENCODING, TextEncoding.ISO_8859_1);
this.setObjectValue(DataTypes.OBJ_DESCRIPTION, "");
this.setObjectValue(DataTypes.OBJ_URLLINK, "");
| public FrameBodyWXXX(FrameBodyWXXX body)
super(body);
| public FrameBodyWXXX(byte textEncoding, String description, String urlLink)Creates a new FrameBodyWXXX datatype.
this.setObjectValue(DataTypes.OBJ_TEXT_ENCODING, textEncoding);
this.setObjectValue(DataTypes.OBJ_DESCRIPTION, description);
this.setObjectValue(DataTypes.OBJ_URLLINK, urlLink);
| public FrameBodyWXXX(ByteBuffer byteBuffer, int frameSize)Creates a new FrameBodyWXXX datatype by reading from file.
super(byteBuffer, frameSize);
|
Methods Summary |
---|
public java.lang.String | getDescription()
return (String) getObjectValue(DataTypes.OBJ_DESCRIPTION);
| public java.lang.String | getIdentifier()The ID3v2 frame identifier
return ID3v24Frames.FRAME_ID_USER_DEFINED_URL;
| public void | setDescription(java.lang.String description)Set a description of the hyperlink
setObjectValue(DataTypes.OBJ_DESCRIPTION, description);
| protected void | setupObjectList()This is different ot other URL Links
objectList.add(new NumberHashMap(DataTypes.OBJ_TEXT_ENCODING, this, TextEncoding.TEXT_ENCODING_FIELD_SIZE));
objectList.add(new TextEncodedStringNullTerminated(DataTypes.OBJ_DESCRIPTION, this));
objectList.add(new StringSizeTerminated(DataTypes.OBJ_URLLINK, this));
| public void | write(java.io.ByteArrayOutputStream tagBuffer)If the description cannot be encoded using the current encoding change the encoder
if (!((AbstractString) getObject(DataTypes.OBJ_DESCRIPTION)).canBeEncoded())
{
this.setTextEncoding(TextEncoding.UTF_16);
}
super.write(tagBuffer);
|
|