FrameBodyPRIVpublic class FrameBodyPRIV extends AbstractID3v2FrameBody implements ID3v24FrameBody, ID3v23FrameBodyPrivate frame.
This frame is used to contain information from a software producer
that its program uses and does not fit into the other frames. The
frame consists of an 'Owner identifier' string and the binary data.
The 'Owner identifier' is a null-terminated string with a URL
containing an email address, or a link to a location where an email
address can be found, that belongs to the organisation responsible
for the frame. Questions regarding the frame should be sent to the
indicated email address. The tag may contain more than one "PRIV"
frame but only with different contents. It is recommended to keep the
number of "PRIV" frames as low as possible.
<Header for 'Private frame', ID: "PRIV"> |
Owner identifier | <text string> $00 |
The private data | <binary data> |
For more details, please refer to the ID3 specifications:
|
Constructors Summary |
---|
public FrameBodyPRIV()Creates a new FrameBodyPRIV datatype.
this.setObjectValue(DataTypes.OBJ_OWNER, "");
this.setObjectValue(DataTypes.OBJ_DATA, new byte[0]);
| public FrameBodyPRIV(FrameBodyPRIV body)
super(body);
| public FrameBodyPRIV(String owner, byte[] data)Creates a new FrameBodyPRIV datatype.
this.setObjectValue(DataTypes.OBJ_OWNER, owner);
this.setObjectValue(DataTypes.OBJ_DATA, data);
| public FrameBodyPRIV(ByteBuffer byteBuffer, int frameSize)Creates a new FrameBodyPRIV datatype.
super(byteBuffer, frameSize);
|
Methods Summary |
---|
public byte[] | getData()
return (byte[]) getObjectValue(DataTypes.OBJ_DATA);
| public java.lang.String | getIdentifier()The ID3v2 frame identifier
return ID3v24Frames.FRAME_ID_PRIVATE;
| public java.lang.String | getOwner()
return (String) getObjectValue(DataTypes.OBJ_OWNER);
| public void | setData(byte[] data)
setObjectValue(DataTypes.OBJ_DATA, data);
| public void | setOwner(java.lang.String owner)
setObjectValue(DataTypes.OBJ_OWNER, owner);
| protected void | setupObjectList()
objectList.add(new StringNullTerminated(DataTypes.OBJ_OWNER, this));
objectList.add(new ByteArraySizeTerminated(DataTypes.OBJ_DATA, this));
|
|