org.jaudiotagger.tag.lyrics3
Class AbstractLyrics3v2FieldFrameBody
java.lang.Object
org.jaudiotagger.tag.id3.AbstractTagItem
org.jaudiotagger.tag.id3.AbstractTagFrameBody
org.jaudiotagger.tag.lyrics3.AbstractLyrics3v2FieldFrameBody
- Direct Known Subclasses:
- FieldFrameBodyAUT, FieldFrameBodyEAL, FieldFrameBodyEAR, FieldFrameBodyETT, FieldFrameBodyIMG, FieldFrameBodyIND, FieldFrameBodyINF, FieldFrameBodyLYR, FieldFrameBodyUnsupported
public abstract class AbstractLyrics3v2FieldFrameBody
- extends AbstractTagFrameBody
Method Summary |
void |
read(java.nio.ByteBuffer byteBuffer)
This reads a frame body from its file into the appropriate FrameBody class
Read the data from the given file into this datatype. |
protected int |
readHeader(java.io.RandomAccessFile file)
This is called by superclass when attempt to read data from file. |
void |
write(java.io.RandomAccessFile file)
Write the contents of this datatype to the file at the position it is
currently at. |
protected void |
writeHeader(java.io.RandomAccessFile file,
int size)
This is called by superclass when attempt to write data from file. |
Methods inherited from class org.jaudiotagger.tag.id3.AbstractTagFrameBody |
createStructure, equals, getBriefDescription, getHeader, getLongDescription, getObject, getObjectValue, getSize, getTextEncoding, isSubsetOf, iterator, setHeader, setObjectValue, setTextEncoding, setupObjectList, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractLyrics3v2FieldFrameBody
public AbstractLyrics3v2FieldFrameBody()
AbstractLyrics3v2FieldFrameBody
public AbstractLyrics3v2FieldFrameBody(AbstractLyrics3v2FieldFrameBody copyObject)
readHeader
protected int readHeader(java.io.RandomAccessFile file)
throws InvalidTagException,
java.io.IOException
- This is called by superclass when attempt to read data from file.
- Parameters:
file
-
- Returns:
-
- Throws:
InvalidTagException
java.io.IOException
writeHeader
protected void writeHeader(java.io.RandomAccessFile file,
int size)
throws java.io.IOException
- This is called by superclass when attempt to write data from file.
- Parameters:
file
- size
-
- Throws:
java.io.IOException
read
public void read(java.nio.ByteBuffer byteBuffer)
throws InvalidTagException
- This reads a frame body from its file into the appropriate FrameBody class
Read the data from the given file into this datatype. The file needs to
have its file pointer in the correct location. The size as indicated in the
header is passed to the frame constructor when reading from file.
- Specified by:
read
in class AbstractTagItem
- Parameters:
byteBuffer
- file to read
- Throws:
java.io.IOException
- on any I/O error
InvalidTagException
- if there is any error in the data format.
write
public void write(java.io.RandomAccessFile file)
throws java.io.IOException
- Write the contents of this datatype to the file at the position it is
currently at.
- Parameters:
file
- destination file
- Throws:
java.io.IOException
- on any I/O error