org.jaudiotagger.tag.datatype
Class Lyrics3TimeStamp

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

public class Lyrics3TimeStamp
extends AbstractDataType


Field Summary
private  long minute
           
private  long second
           
 
Fields inherited from class org.jaudiotagger.tag.datatype.AbstractDataType
frameBody, identifier, logger, size, TYPE_ELEMENT, value
 
Constructor Summary
Lyrics3TimeStamp(Lyrics3TimeStamp copy)
           
Lyrics3TimeStamp(java.lang.String identifier)
           
Lyrics3TimeStamp(java.lang.String identifier, AbstractTagFrameBody frameBody)
          Creates a new ObjectLyrics3TimeStamp datatype.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 long getMinute()
           
 long getSecond()
           
 int getSize()
          This defines the size in bytes of the datatype being held when read/written to file.
 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 readString(java.lang.String s)
          Todo this is wrong
 void readString(java.lang.String timeStamp, int offset)
           
 void setMinute(long minute)
           
 void setSecond(long second)
           
 void setTimeStamp(long timeStamp, byte timeStampFormat)
          Creates a new ObjectLyrics3TimeStamp datatype.
 java.lang.String toString()
           
 byte[] writeByteArray()
          Starting point write ID3 Datatype back to array of bytes.
 java.lang.String writeString()
           
 
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

minute

private long minute

second

private long second
Constructor Detail

Lyrics3TimeStamp

public Lyrics3TimeStamp(java.lang.String identifier,
                        AbstractTagFrameBody frameBody)
Creates a new ObjectLyrics3TimeStamp datatype.

Parameters:
identifier -
frameBody -

Lyrics3TimeStamp

public Lyrics3TimeStamp(java.lang.String identifier)

Lyrics3TimeStamp

public Lyrics3TimeStamp(Lyrics3TimeStamp copy)
Method Detail

readString

public void readString(java.lang.String s)
Todo this is wrong

Parameters:
s -

setMinute

public void setMinute(long minute)

getMinute

public long getMinute()
Returns:

setSecond

public void setSecond(long second)

getSecond

public long getSecond()
Returns:

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:

setTimeStamp

public void setTimeStamp(long timeStamp,
                         byte timeStampFormat)
Creates a new ObjectLyrics3TimeStamp datatype.

Parameters:
timeStamp -
timeStampFormat -

equals

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

readString

public void readString(java.lang.String timeStamp,
                       int offset)
Parameters:
timeStamp -
offset -
Throws:
java.lang.NullPointerException
java.lang.IndexOutOfBoundsException

toString

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

writeString

public java.lang.String writeString()
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
Throws:
InvalidDataTypeException

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:
the array of bytes representing this datatype that should be written to file