|
||||||||||
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
public abstract class AbstractTagFrameBody
A frame body contains the data content for a frame
Field Summary | |
---|---|
private AbstractTagFrame |
header
Reference to the header associated with this frame body, a framebody can be created without a header but one it is associated with a header this should be set. |
protected java.util.ArrayList<AbstractDataType> |
objectList
List of data types that make up this particular frame body. |
Fields inherited from class org.jaudiotagger.tag.id3.AbstractTagItem |
---|
logger |
Constructor Summary | |
---|---|
protected |
AbstractTagFrameBody()
Creates a new framebody, at this point the bodys ObjectList is setup which defines what datatypes are expected in body |
protected |
AbstractTagFrameBody(AbstractTagFrameBody copyObject)
Copy Constructor for fragment body. |
Method Summary | |
---|---|
void |
createStructure()
|
boolean |
equals(java.lang.Object obj)
Returns true if this datatype and its entire DataType array list equals the argument. |
java.lang.String |
getBriefDescription()
This method calls toString for all it's objects and appends
them without any newline characters. |
AbstractTagFrame |
getHeader()
Get Reference to header |
java.lang.String |
getLongDescription()
This method calls toString for all it's objects and appends
them. |
AbstractDataType |
getObject(java.lang.String identifier)
Returns the datatype with the specified identifier |
java.lang.Object |
getObjectValue(java.lang.String identifier)
Returns the value of the datatype with the specified identifier |
int |
getSize()
Returns the size in bytes of this fragmentbody |
byte |
getTextEncoding()
Return the Text Encoding |
boolean |
isSubsetOf(java.lang.Object obj)
Returns true if this instance and its entire DataType array list is a subset of the argument. |
java.util.Iterator |
iterator()
Returns an iterator of the DataType list. |
void |
setHeader(AbstractTagFrame header)
Set header |
void |
setObjectValue(java.lang.String identifier,
java.lang.Object value)
Sets all objects of identifier type to value defined by obj argument. |
void |
setTextEncoding(byte textEncoding)
Set the Text Encoding to use for this frame body |
protected abstract void |
setupObjectList()
Create the list of Datatypes that this body expects in the correct order This method needs to be implemented by concrete subclasses |
java.lang.String |
toString()
Return brief description of FrameBody |
Methods inherited from class org.jaudiotagger.tag.id3.AbstractTagItem |
---|
getIdentifier, read |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private AbstractTagFrame header
protected java.util.ArrayList<AbstractDataType> objectList
Constructor Detail |
---|
protected AbstractTagFrameBody()
protected AbstractTagFrameBody(AbstractTagFrameBody copyObject)
copyObject
- Method Detail |
---|
public void createStructure()
public final byte getTextEncoding()
public final void setTextEncoding(byte textEncoding)
textEncoding
- to use for this frame bodypublic java.lang.String getBriefDescription()
toString
for all it's objects and appends
them without any newline characters.
public final java.lang.String getLongDescription()
toString
for all it's objects and appends
them. It contains new line characters and is more suited for display
purposes
public final void setObjectValue(java.lang.String identifier, java.lang.Object value)
obj
argument.
identifier
- MP3Object
identifiervalue
- new datatype valuepublic final java.lang.Object getObjectValue(java.lang.String identifier)
identifier
identifier
-
identifier
public final AbstractDataType getObject(java.lang.String identifier)
identifier
identifier
-
identifier
public int getSize()
getSize
in class AbstractTagItem
public boolean isSubsetOf(java.lang.Object obj)
isSubsetOf
in class AbstractTagItem
obj
- datatype to determine subset of
public boolean equals(java.lang.Object obj)
equals
in class AbstractTagItem
obj
- datatype to determine equality of
MP3Object
array
list equals the argument.public java.util.Iterator iterator()
public java.lang.String toString()
toString
in class java.lang.Object
protected abstract void setupObjectList()
public AbstractTagFrame getHeader()
public void setHeader(AbstractTagFrame header)
header
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |