org.jaudiotagger.tag.datatype
Class ID3v2LyricLine

java.lang.Object
  extended by org.jaudiotagger.tag.datatype.AbstractDataType
      extended by org.jaudiotagger.tag.datatype.ID3v2LyricLine

public class ID3v2LyricLine
extends AbstractDataType


Field Summary
(package private)  java.lang.String text
           
(package private)  long timeStamp
           
 
Fields inherited from class org.jaudiotagger.tag.datatype.AbstractDataType
frameBody, identifier, logger, size, TYPE_ELEMENT, value
 
Constructor Summary
ID3v2LyricLine(ID3v2LyricLine copy)
           
ID3v2LyricLine(java.lang.String identifier, AbstractTagFrameBody frameBody)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getSize()
          This defines the size in bytes of the datatype being held when read/written to file.
 java.lang.String getText()
           
 long getTimeStamp()
           
 void readByteArray(byte[] arr, int offset)
          This is the starting point for reading bytes from the file into the ID3 datatype starting at offset.
 void setText(java.lang.String text)
           
 void setTimeStamp(long timeStamp)
           
 java.lang.String toString()
           
 byte[] writeByteArray()
          Starting point write ID3 Datatype back to array of bytes.
 
Methods inherited from class org.jaudiotagger.tag.datatype.AbstractDataType
createStructure, getBody, getIdentifier, getValue, readByteArray, setBody, setValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

text

java.lang.String text

timeStamp

long timeStamp
Constructor Detail

ID3v2LyricLine

public ID3v2LyricLine(java.lang.String identifier,
                      AbstractTagFrameBody frameBody)

ID3v2LyricLine

public ID3v2LyricLine(ID3v2LyricLine copy)
Method Detail

getSize

public int getSize()
Description copied from class: AbstractDataType
This defines the size in bytes of the datatype being held when read/written to file.

Specified by:
getSize in class AbstractDataType
Returns:

setText

public void setText(java.lang.String text)

getText

public java.lang.String getText()
Returns:

setTimeStamp

public void setTimeStamp(long timeStamp)

getTimeStamp

public long getTimeStamp()
Returns:

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class AbstractDataType
Parameters:
obj -
Returns:

readByteArray

public void readByteArray(byte[] arr,
                          int offset)
                   throws InvalidDataTypeException
Description copied from class: AbstractDataType
This is the starting point for reading bytes from the file into the ID3 datatype starting at offset. This class must be overridden

Specified by:
readByteArray in class AbstractDataType
Parameters:
arr -
offset -
Throws:
java.lang.NullPointerException
java.lang.IndexOutOfBoundsException
InvalidDataTypeException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:

writeByteArray

public byte[] writeByteArray()
Description copied from class: AbstractDataType
Starting point write ID3 Datatype back to array of bytes. This class must be overridden.

Specified by:
writeByteArray in class AbstractDataType
Returns: