org.farng.mp3.object
Class AbstractMP3Object

java.lang.Object
  extended byorg.farng.mp3.object.AbstractMP3Object
Direct Known Subclasses:
ObjectBooleanByte, ObjectBooleanString, ObjectByteArraySizeTerminated, ObjectGroupRepeated, ObjectID3v2LyricLine, ObjectLyrics3Image, ObjectLyrics3Line, ObjectLyrics3TimeStamp, ObjectNumberFixedLength, ObjectNumberVariableLength, ObjectStringFixedLength, ObjectStringNullTerminated, ObjectStringSizeTerminated

public abstract class AbstractMP3Object
extends java.lang.Object

ID3v2 and Lyrics3v2 tags have individual fields AbstractMP3Fragments Then each fragment is broken down in to individual AbstractMP3Objects

Version:
$Revision: 1.4 $
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()
           
abstract  int getSize()
           
 java.lang.Object getValue()
           
 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)
           
abstract  java.lang.String toString()
           
 byte[] writeByteArray()
           
 java.lang.String writeString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

setValue

public void setValue(java.lang.Object value)

getValue

public java.lang.Object getValue()

readByteArray

public final void readByteArray(byte[] arr)

readString

public final void readString(java.lang.String str)

getSize

public abstract int getSize()

readByteArray

public void readByteArray(byte[] arr,
                          int offset)

readString

public void readString(java.lang.String str,
                       int offset)

toString

public abstract java.lang.String toString()

equals

public boolean equals(java.lang.Object obj)

writeByteArray

public byte[] writeByteArray()

writeString

public java.lang.String writeString()


Copyright (c) 2004 Eric Farng