|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jaudiotagger.tag.id3.AbstractTagItem org.jaudiotagger.tag.id3.AbstractTagFrameBody org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody
public abstract class AbstractID3v2FrameBody
Contains the content for an ID3v2 frame, (the header is held directly within the frame
Field Summary | |
---|---|
private int |
size
Frame Body Size, originally this is size as indicated in frame header when we come to writing data we recalculate it. |
protected static java.lang.String |
TYPE_BODY
|
Fields inherited from class org.jaudiotagger.tag.id3.AbstractTagFrameBody |
---|
objectList |
Fields inherited from class org.jaudiotagger.tag.id3.AbstractTagItem |
---|
logger |
Constructor Summary | |
---|---|
protected |
AbstractID3v2FrameBody()
Create Empty Body. |
protected |
AbstractID3v2FrameBody(AbstractID3v2FrameBody copyObject)
Create Body based on another body |
protected |
AbstractID3v2FrameBody(java.nio.ByteBuffer byteBuffer,
int frameSize)
Creates a new FrameBody datatype from file. |
Method Summary | |
---|---|
void |
createStructure()
Return String Representation of Datatype * |
boolean |
equals(java.lang.Object obj)
Are two bodies equal |
abstract java.lang.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(java.nio.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(java.io.ByteArrayOutputStream tagBuffer)
Write the contents of this datatype to the byte array |
Methods inherited from class org.jaudiotagger.tag.id3.AbstractTagFrameBody |
---|
getBriefDescription, getHeader, getLongDescription, getObject, getObjectValue, getTextEncoding, isSubsetOf, iterator, setHeader, setObjectValue, setTextEncoding, setupObjectList, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String TYPE_BODY
private int size
Constructor Detail |
---|
protected AbstractID3v2FrameBody()
protected AbstractID3v2FrameBody(AbstractID3v2FrameBody copyObject)
copyObject
- protected AbstractID3v2FrameBody(java.nio.ByteBuffer byteBuffer, int frameSize) throws InvalidTagException
byteBuffer
- from where to read the frame body fromframeSize
-
InvalidTagException
Method Detail |
---|
public abstract java.lang.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(java.lang.Object obj)
equals
in class AbstractTagFrameBody
obj
-
MP3Object
array
list equals the argument.public void read(java.nio.ByteBuffer byteBuffer) throws InvalidTagException
read
in class AbstractTagItem
byteBuffer
- file to read
InvalidFrameException
- if unable to construct a framebody from the ByteBuffer
InvalidTagException
public void write(java.io.ByteArrayOutputStream tagBuffer)
tagBuffer
-
java.io.IOException
- on any I/O errorpublic void createStructure()
createStructure
in class AbstractTagFrameBody
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |