public class ID3v24FrameBodySeek extends ID3v24FrameBody
A seek frame body indicates where other tags in an mp3 file/stream can be found.
Field | Description | |
---|---|---|
1. | offset to next tag | indicates the number of bytes from the end of this tag to the beginning of the next tag. |
There may only be one seek frame in an ID3v2.4 tag
.
buffer, dirty, frameType
nextNullTerminatorIndex, nullTerminatorIndex
Constructor and Description |
---|
ID3v24FrameBodySeek()
This default constructor is called when creating a new frame.
|
ID3v24FrameBodySeek(java.io.InputStream inputStream,
int frameBodySize)
This constructor is called when reading in an existing frame from an .mp3 file.
|
ID3v24FrameBodySeek(int offsetToNextTag)
This constructor is called when creating a new frame.
|
Modifier and Type | Method and Description |
---|---|
int |
getOffsetToNextTag()
gets the offset to the next tag.
|
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 |
setOffsetToNextTag(int offsetToNextTag)
sets the offset to the next tag.
|
java.lang.String |
toString()
gets a string representation of the seek frame body.
|
getFrameType, getNextNullTerminator, getSize, isDirty, save, save
getNextNullTerminator, pricesToString, stringToBytes
bytesToInt, bytesToInt, bytesToShort, bytesToShort, bytesToSynchsafeInt, bytesToSynchsafeShort, formateDate, hex, hex, hex, intToBytes, littleEndianBytesToInt, pad, shortToBytes, synchsafeIntToBytes
public ID3v24FrameBodySeek()
public ID3v24FrameBodySeek(int offsetToNextTag)
offsetToNextTag
- the number of bytes from the end of this tag to the beginning of the next tag.public ID3v24FrameBodySeek(java.io.InputStream inputStream, int frameBodySize) throws java.io.IOException
inputStream
- input stream pointing to a seek 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 ID3v24FrameBody
java.lang.IllegalArgumentException
- if an invalid value is detected while parsing the frame body's raw bytes.public int getOffsetToNextTag()
setOffsetToNextTag(int)
public void setOffsetToNextTag(int offsetToNextTag)
offsetToNextTag
- the number of bytes from the end of this tag to the beginning of the next tag.java.lang.IllegalArgumentException
- if the offset is < 0.getOffsetToNextTag()
public void setBuffer()
setBuffer
in class ID3v24FrameBody
public java.lang.String toString()
toString
in class java.lang.Object