FrameBodyUFIDpublic class FrameBodyUFID extends AbstractID3v2FrameBody implements ID3v24FrameBody, ID3v23FrameBodyA UFID Framebody consists of an owner that identifies the server hosting the
unique identifier database, and the unique identifier itself which can be up to 64
bytes in length. |
Fields Summary |
---|
public static final String | UFID_MUSICBRAINZ | public static final String | UFID_ID3TEST |
Constructors Summary |
---|
public FrameBodyUFID()Creates a new FrameBodyUFID datatype.
setOwner("");
setUniqueIdentifier(new byte[0]);
| public FrameBodyUFID(FrameBodyUFID body)
super(body);
| public FrameBodyUFID(String owner, byte[] uniqueIdentifier)Creates a new FrameBodyUFID datatype.
setOwner(owner);
setUniqueIdentifier(uniqueIdentifier);
| public FrameBodyUFID(ByteBuffer byteBuffer, int frameSize)Creates FrameBodyUFID datatype from buffer
super(byteBuffer, frameSize);
|
Methods Summary |
---|
public java.lang.String | getIdentifier()The ID3v2 frame identifier
return ID3v24Frames.FRAME_ID_UNIQUE_FILE_ID;
| public java.lang.String | getOwner()
return (String) getObjectValue(DataTypes.OBJ_OWNER);
| public byte[] | getUniqueIdentifier()
return (byte[]) getObjectValue(DataTypes.OBJ_DATA);
| public void | setOwner(java.lang.String owner)Set the owner of url of the the database that this ufid is stored in
setObjectValue(DataTypes.OBJ_OWNER, owner);
| public void | setUniqueIdentifier(byte[] uniqueIdentifier)Set the unique identifier (within the owners domain)
setObjectValue(DataTypes.OBJ_DATA, uniqueIdentifier);
| protected void | setupObjectList()
objectList.add(new StringNullTerminated(DataTypes.OBJ_OWNER, this));
objectList.add(new ByteArraySizeTerminated(DataTypes.OBJ_DATA, this));
|
|