org.farng.mp3.object
Class ObjectNumberFixedLength

java.lang.Object
  extended by org.farng.mp3.object.AbstractMP3Object
      extended by org.farng.mp3.object.ObjectNumberFixedLength
All Implemented Interfaces:
MP3Object
Direct Known Subclasses:
ObjectNumberHashMap

public class ObjectNumberFixedLength
extends AbstractMP3Object

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
 
Fields inherited from class org.farng.mp3.object.AbstractMP3Object
identifier, value
 
Constructor Summary
ObjectNumberFixedLength(ObjectNumberFixedLength copyObject)
          Creates a new ObjectNumberFixedLength object.
ObjectNumberFixedLength(java.lang.String identifier, int size)
          Creates a new ObjectNumberFixedLength object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getLength()
           
 int getSize()
          Get the size of this object, in bytes.
 void readByteArray(byte[] arr, int offset)
           
 void readString(java.lang.String str, int offset)
           
 void setSize(int length)
           
 java.lang.String toString()
          Get a string representation of this object.
 byte[] writeByteArray()
           
 java.lang.String writeString()
           
 
Methods inherited from class org.farng.mp3.object.AbstractMP3Object
getIdentifier, getValue, readByteArray, readString, setValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectNumberFixedLength

public ObjectNumberFixedLength(java.lang.String identifier,
                               int size)
Creates a new ObjectNumberFixedLength object.


ObjectNumberFixedLength

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

Method Detail

getLength

public int getLength()

setSize

public void setSize(int length)

getSize

public int getSize()
Description copied from interface: MP3Object
Get the size of this object, in bytes.

Returns:
the size

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class AbstractMP3Object

readByteArray

public void readByteArray(byte[] arr,
                          int offset)
Overrides:
readByteArray in class AbstractMP3Object

readString

public void readString(java.lang.String str,
                       int offset)
Overrides:
readString in class AbstractMP3Object

toString

public java.lang.String toString()
Description copied from interface: MP3Object
Get a string representation of this object.

Specified by:
toString in interface MP3Object
Overrides:
toString in class java.lang.Object
Returns:
string

writeByteArray

public byte[] writeByteArray()
Overrides:
writeByteArray in class AbstractMP3Object

writeString

public java.lang.String writeString()
Overrides:
writeString in class AbstractMP3Object