entagged.audioformats.mp3.util
Class Id3v2TagReader
java.lang.Object
entagged.audioformats.mp3.util.Id3v2TagReader
public class Id3v2TagReader
- extends Object
This class is more a dispatching unit for selecting the right reader based on
the found ID3V2 minor version.
- Author:
- Rapha?l Slinckx
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Id3v2TagReader
public Id3v2TagReader()
read
public Id3v2Tag read(RandomAccessFile raf)
throws CannotReadException,
IOException
- This method reads the given file and searches for an ID3V2 Tag. If it is
found and there is a reader for that version, a ID3V2 tag will be created
upon the contents.
Hint for developers:
Since ID3Flags
is an instance variable of the reader and the
array is passed without copying, this method must remain
"synchronized" so no two threads would change this field of the
current reader instance.
- Parameters:
raf
- The mp3 file containing the ID3V2 Tag.
- Returns:
- an ID3V2 tag representation.
- Throws:
CannotReadException
- If the file doesn't contain valid ID3V2 tag data.
IOException
- On I/O errors.
Copyright © 2007-2008. All Rights Reserved.