|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 |
---|
Fields inherited from class org.jaudiotagger.tag.id3.AbstractTagItem |
---|
logger |
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, toString |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public abstract java.lang.String getIdentifier()
getIdentifier
in class AbstractTagItem
public int getSize()
getSize
in class AbstractTagFrameBody
public void setSize(int 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)
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 |