public abstract class AbstractTagFrameBody extends AbstractTagItem
Modifier and Type | Field and Description |
---|---|
protected ArrayList<AbstractDataType> |
objectList
List of data types that make up this particular frame body.
|
logger
Modifier | Constructor and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
createStructure() |
boolean |
equals(Object obj)
Returns true if this datatype and its entire DataType array
list equals the argument.
|
String |
getBriefDescription()
This method calls
toString for all it's objects and appends
them without any newline characters. |
AbstractTagFrame |
getHeader()
Get Reference to header
|
String |
getLongDescription()
This method calls
toString for all it's objects and appends
them. |
AbstractDataType |
getObject(String identifier)
Returns the datatype with the specified
identifier |
Object |
getObjectValue(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
|
String |
getUserFriendlyValue() |
boolean |
isSubsetOf(Object obj)
Returns true if this instance and its entire DataType
array list is a subset of the argument.
|
Iterator |
iterator()
Returns an iterator of the DataType list.
|
void |
setHeader(AbstractTagFrame header)
Set header
|
void |
setObjectValue(String identifier,
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
|
String |
toString()
Return brief description of FrameBody
|
getIdentifier, read
protected ArrayList<AbstractDataType> objectList
protected AbstractTagFrameBody()
protected AbstractTagFrameBody(AbstractTagFrameBody copyObject)
copyObject
- public void createStructure()
public final byte getTextEncoding()
public final void setTextEncoding(byte textEncoding)
textEncoding
- to use for this frame bodypublic String getUserFriendlyValue()
public String getBriefDescription()
toString
for all it's objects and appends
them without any newline characters.public final String getLongDescription()
toString
for all it's objects and appends
them. It contains new line characters and is more suited for display
purposespublic final void setObjectValue(String identifier, Object value)
obj
argument.identifier
- MP3Object
identifiervalue
- new datatype valuepublic final Object getObjectValue(String identifier)
identifier
identifier
- identifier
public final AbstractDataType getObject(String identifier)
identifier
identifier
- identifier
public int getSize()
getSize
in class AbstractTagItem
public boolean isSubsetOf(Object obj)
isSubsetOf
in class AbstractTagItem
obj
- datatype to determine subset ofpublic boolean equals(Object obj)
equals
in class AbstractTagItem
obj
- datatype to determine equality ofMP3Object
array
list equals the argument.public Iterator iterator()
public String toString()
protected abstract void setupObjectList()
public AbstractTagFrame getHeader()
public void setHeader(AbstractTagFrame header)
header
- Copyright © 2005–2020 jthink.net. All rights reserved.