public class ID3v23FrameBodyPrivate extends ID3v23FrameBody
![]() |
![]() |
A private frame body is associated with an ID3v2.3 PRIV frame which contains information from a software producer that its
program uses and does not fit into any of the other frames. The private frame body contains the following fields:
| Field | Description | |
|---|---|---|
| 1. | ownerId | URL containing an e-mail address, or a link to a location where an e-mail address can be found, that belongs to the organization responsible for the frame. Questions regarding the frame should be sent to the indicated e-mail address. |
| 2. | data | raw binary data of the private content. |
buffer, dirty, frameTypenextNullTerminatorIndex, nullTerminatorIndex| Constructor and Description |
|---|
ID3v23FrameBodyPrivate()
The default constructor is called when creating a new frame.
|
ID3v23FrameBodyPrivate(java.io.InputStream inputStream,
int frameBodySize)
This constructor is called when reading in an existing frame from an .mp3 file.
|
ID3v23FrameBodyPrivate(java.lang.String ownerId,
byte[] data)
This constructor is called when creating a new frame.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getData()
gets the raw binary data.
|
java.lang.String |
getOwnerId()
gets the owner id of the frame.
|
void |
parse()
parses the raw bytes of the frame body and stores the parsed values in the frame's fields.
|
void |
setBuffer()
If the frame body's values have been modified, then resize the raw binary buffer and store the new values there.
|
void |
setData(byte[] data)
sets the raw binary data.
|
void |
setOwnerId(java.lang.String ownerId)
sets the owner id, which is a URL containing an e-mail address, or a link to a location where an e-mail address can be found, that belongs to the
organization responsible for the frame.
|
java.lang.String |
toString()
gets a string representation of the private frame body showing all of the frame's fields and their values.
|
getFrameType, getNextNullTerminator, getSize, isDirty, save, savegetNextNullTerminator, pricesToString, stringToBytesbytesToInt, bytesToInt, bytesToShort, bytesToShort, bytesToSynchsafeInt, bytesToSynchsafeShort, formateDate, hex, hex, hex, intToBytes, littleEndianBytesToInt, pad, shortToBytes, synchsafeIntToBytespublic ID3v23FrameBodyPrivate()
public ID3v23FrameBodyPrivate(java.lang.String ownerId,
byte[] data)
ownerId - 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.data - raw binary data.public ID3v23FrameBodyPrivate(java.io.InputStream inputStream,
int frameBodySize)
throws java.io.IOException
inputStream - input stream pointing to a private frame body in the .mp3 file.frameBodySize - size (in bytes) of the frame's body.java.io.IOException - if there is an error while reading the frame body.public void parse()
throws java.lang.IllegalArgumentException
parse in class ID3v23FrameBodyjava.lang.IllegalArgumentException - if an invalid value is detected while parsing the frame body's raw bytes.public java.lang.String getOwnerId()
setOwnerId(String)public void setOwnerId(java.lang.String ownerId)
ownerId - the id of the owner of the data.getOwnerId()public byte[] getData()
setData(byte[])public void setData(byte[] data)
data - the binary data.getData()public void setBuffer()
setBuffer in class ID3v23FrameBodypublic java.lang.String toString()
toString in class java.lang.Object