org.farng.mp3.object
Class AbstractMP3Object
java.lang.Object
org.farng.mp3.object.AbstractMP3Object
- All Implemented Interfaces:
- MP3Object
- Direct Known Subclasses:
- AbstractTextObject, ObjectBooleanByte, ObjectBooleanString, ObjectByteArraySizeTerminated, ObjectGroupRepeated, ObjectID3v2LyricLine, ObjectLyrics3Image, ObjectLyrics3Line, ObjectLyrics3TimeStamp, ObjectNumberFixedLength, ObjectNumberVariableLength
public abstract class AbstractMP3Object
- extends java.lang.Object
- implements MP3Object
ID3v2 and Lyrics3v2 tags have individual fields AbstractMP3Fragment
s Then each fragment is broken down
in to individual AbstractMP3Object
s
- Version:
- $Revision: 3 $
- Author:
- Eric Farng
Field Summary |
protected java.lang.String |
identifier
|
protected java.lang.Object |
value
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
value
protected java.lang.Object value
identifier
protected java.lang.String identifier
AbstractMP3Object
public AbstractMP3Object()
- Creates a new AbstractMP3Object object.
AbstractMP3Object
public AbstractMP3Object(AbstractMP3Object copyObject)
- Creates a new AbstractMP3Object object.
getIdentifier
public java.lang.String getIdentifier()
- Description copied from interface:
MP3Object
- Get the identifier for this object.
- Specified by:
getIdentifier
in interface MP3Object
- Returns:
- the object ID
setValue
public void setValue(java.lang.Object value)
getValue
public java.lang.Object getValue()
- Description copied from interface:
MP3Object
- Get the value of this object.
- Specified by:
getValue
in interface MP3Object
- Returns:
- the object
readByteArray
public final void readByteArray(byte[] arr)
readString
public final void readString(java.lang.String str)
readByteArray
public void readByteArray(byte[] arr,
int offset)
readString
public void readString(java.lang.String str,
int offset)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
writeByteArray
public byte[] writeByteArray()
writeString
public java.lang.String writeString()