org.farng.mp3.object
Class AbstractMP3Object

java.lang.Object
  extended by 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 AbstractMP3Fragments Then each fragment is broken down in to individual AbstractMP3Objects

Version:
$Revision: 3 $
Author:
Eric Farng

Field Summary
protected  java.lang.String identifier
           
protected  java.lang.Object value
           
 
Constructor Summary
AbstractMP3Object()
          Creates a new AbstractMP3Object object.
AbstractMP3Object(AbstractMP3Object copyObject)
          Creates a new AbstractMP3Object object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getIdentifier()
          Get the identifier for this object.
 java.lang.Object getValue()
          Get the value of this object.
 void readByteArray(byte[] arr)
           
 void readByteArray(byte[] arr, int offset)
           
 void readString(java.lang.String str)
           
 void readString(java.lang.String str, int offset)
           
 void setValue(java.lang.Object value)
           
 byte[] writeByteArray()
           
 java.lang.String writeString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.farng.mp3.object.MP3Object
getSize, toString
 

Field Detail

value

protected java.lang.Object value

identifier

protected java.lang.String identifier
Constructor Detail

AbstractMP3Object

public AbstractMP3Object()
Creates a new AbstractMP3Object object.


AbstractMP3Object

public AbstractMP3Object(AbstractMP3Object copyObject)
Creates a new AbstractMP3Object object.

Method Detail

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()