public abstract class AbstractID3v2FrameBody extends AbstractTagFrameBody
Modifier and Type | Field and Description |
---|---|
protected static String |
TYPE_BODY |
objectList
logger
Modifier | Constructor and Description |
---|---|
protected |
AbstractID3v2FrameBody()
Create Empty Body.
|
protected |
AbstractID3v2FrameBody(AbstractID3v2FrameBody copyObject)
Create Body based on another body
|
protected |
AbstractID3v2FrameBody(ByteBuffer byteBuffer,
int frameSize)
Creates a new FrameBody dataType from file.
|
Modifier and Type | Method and Description |
---|---|
void |
createStructure()
Return String Representation of Datatype *
|
boolean |
equals(Object obj)
Are two bodies equal
|
abstract String |
getIdentifier()
Return the ID3v2 Frame Identifier, must be implemented by concrete subclasses
|
int |
getSize()
Return size of frame body,if frameBody already exist will take this value from the frame header
but it is always recalculated before writing any changes back to disk.
|
void |
read(ByteBuffer byteBuffer)
This reads a frame body from a ByteBuffer into the appropriate FrameBody class and update the position of the
buffer to be just after the end of this frameBody
The ByteBuffer represents the tag and its position should be at the start of this frameBody.
|
void |
setSize()
Set size based on size of the DataTypes making up the body,done after write
|
void |
setSize(int size)
Set size based on size passed as parameter from frame header,
done before read
|
void |
write(ByteArrayOutputStream tagBuffer)
Write the contents of this datatype to the byte array
|
getBriefDescription, getHeader, getLongDescription, getObject, getObjectValue, getTextEncoding, getUserFriendlyValue, isSubsetOf, iterator, setHeader, setObjectValue, setTextEncoding, setupObjectList, toString
protected static final String TYPE_BODY
protected AbstractID3v2FrameBody()
protected AbstractID3v2FrameBody(AbstractID3v2FrameBody copyObject)
copyObject
- protected AbstractID3v2FrameBody(ByteBuffer byteBuffer, int frameSize) throws InvalidTagException
byteBuffer
- from where to read the frame body fromframeSize
- InvalidTagException
public abstract String getIdentifier()
getIdentifier
in class AbstractTagItem
public int getSize()
getSize
in class AbstractTagFrameBody
public void setSize(int size)
size
- public void setSize()
public boolean equals(Object obj)
equals
in class AbstractTagFrameBody
obj
- MP3Object
array
list equals the argument.public void read(ByteBuffer byteBuffer) throws InvalidTagException
read
in class AbstractTagItem
byteBuffer
- file to readInvalidFrameException
- if unable to construct a frameBody from the ByteBufferInvalidTagException
public void write(ByteArrayOutputStream tagBuffer)
tagBuffer
- public void createStructure()
createStructure
in class AbstractTagFrameBody
Copyright © 2005–2020 jthink.net. All rights reserved.