|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jaudiotagger.tag.datatype.AbstractDataType
public abstract class AbstractDataType
Represents a field/data type that can be held within a frames body, these map loosely onto Section 4. ID3v2 frame overview at http://www.id3.org/id3v2.4.0-structure.txt
Field Summary | |
---|---|
static java.util.logging.Logger |
logger
|
Constructor Summary | |
---|---|
AbstractDataType(AbstractDataType copyObject)
This is used by subclasses, to clone the data within the copyObject TODO:It seems to be missing some of the more complex value types. |
Method Summary | |
---|---|
void |
createStructure()
Return String Representation of Datatype * |
boolean |
equals(java.lang.Object obj)
|
AbstractTagFrameBody |
getBody()
Get the framebody associated with this datatype |
java.lang.String |
getIdentifier()
Return the key as declared by the frame bodies datatype list |
abstract int |
getSize()
This defines the size in bytes of the datatype being held when read/written to file. |
java.lang.Object |
getValue()
Get value held by this Object |
void |
readByteArray(byte[] arr)
Simplified wrapper for reading bytes from file into Object. |
abstract void |
readByteArray(byte[] arr,
int offset)
This is the starting point for reading bytes from the file into the ID3 datatype starting at offset. |
void |
setBody(AbstractTagFrameBody frameBody)
Set the framebody that this datatype is associated with |
void |
setValue(java.lang.Object value)
Set the value held by this datatype, this is used typically used when the user wants to modify the value in an existing frame. |
abstract byte[] |
writeByteArray()
Starting point write ID3 Datatype back to array of bytes. |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.util.logging.Logger logger
Constructor Detail |
---|
public AbstractDataType(AbstractDataType copyObject)
Method Detail |
---|
public void setBody(AbstractTagFrameBody frameBody)
frameBody
- public AbstractTagFrameBody getBody()
public java.lang.String getIdentifier()
public void setValue(java.lang.Object value)
value
- public java.lang.Object getValue()
public final void readByteArray(byte[] arr) throws InvalidDataTypeException
arr
-
InvalidDataTypeException
public abstract int getSize()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
-
public abstract void readByteArray(byte[] arr, int offset) throws InvalidDataTypeException
arr
- offset
-
InvalidDataTypeException
public abstract byte[] writeByteArray()
public void createStructure()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |