Methods Summary |
---|
public void | createStructure()Return String Representation of Datatype *
MP3File.getStructureFormatter().addElement(identifier, getValue().toString());
|
public boolean | equals(java.lang.Object obj)
if(this==obj)
{
return true;
}
if (!(obj instanceof AbstractDataType))
{
return false;
}
AbstractDataType object = (AbstractDataType) obj;
if (!this.identifier.equals(object.identifier))
{
return false;
}
if ((this.value == null) && (object.value == null))
{
return true;
}
else if ((this.value == null) || (object.value == null))
{
return false;
}
// boolean[]
if (this.value instanceof boolean[] && object.value instanceof boolean[])
{
if (!Arrays.equals((boolean[]) this.value, (boolean[]) object.value))
{
return false;
}
// byte[]
}
else if (this.value instanceof byte[] && object.value instanceof byte[])
{
if (!Arrays.equals((byte[]) this.value, (byte[]) object.value))
{
return false;
}
// char[]
}
else if (this.value instanceof char[] && object.value instanceof char[])
{
if (!Arrays.equals((char[]) this.value, (char[]) object.value))
{
return false;
}
// double[]
}
else if (this.value instanceof double[] && object.value instanceof double[])
{
if (!Arrays.equals((double[]) this.value, (double[]) object.value))
{
return false;
}
// float[]
}
else if (this.value instanceof float[] && object.value instanceof float[])
{
if (!Arrays.equals((float[]) this.value, (float[]) object.value))
{
return false;
}
// int[]
}
else if (this.value instanceof int[] && object.value instanceof int[])
{
if (!Arrays.equals((int[]) this.value, (int[]) object.value))
{
return false;
}
// long[]
}
else if (this.value instanceof long[] && object.value instanceof long[])
{
if (!Arrays.equals((long[]) this.value, (long[]) object.value))
{
return false;
}
// Object[]
}
else if (this.value instanceof Object[] && object.value instanceof Object[])
{
if (!Arrays.equals((Object[]) this.value, (Object[]) object.value))
{
return false;
}
// short[]
}
else if (this.value instanceof short[] && object.value instanceof short[])
{
if (!Arrays.equals((short[]) this.value, (short[]) object.value))
{
return false;
}
}
else if (!this.value.equals(object.value))
{
return false;
}
return true;
|
public org.jaudiotagger.tag.id3.AbstractTagFrameBody | getBody()Get the framebody associated with this datatype
return frameBody;
|
public java.lang.String | getIdentifier()Return the key as declared by the frame bodies datatype list
return identifier;
|
public abstract int | getSize()This defines the size in bytes of the datatype being
held when read/written to file.
|
public java.lang.Object | getValue()Get value held by this Object
return value;
|
public 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.
This class must be overridden
|
public final void | readByteArray(byte[] arr)Simplified wrapper for reading bytes from file into Object.
Used for reading Strings, this class should be overridden
for non String Objects
readByteArray(arr, 0);
|
public void | setBody(org.jaudiotagger.tag.id3.AbstractTagFrameBody frameBody)Set the framebody that this datatype is associated with
this.frameBody = frameBody;
|
public 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.
this.value = value;
|
public abstract byte[] | writeByteArray()Starting point write ID3 Datatype back to array of bytes.
This class must be overridden.
|