org.jaudiotagger.audio.mp3
Class MP3FileReader

java.lang.Object
  extended by org.jaudiotagger.audio.generic.AudioFileReader
      extended by org.jaudiotagger.audio.mp3.MP3FileReader

public class MP3FileReader
extends AudioFileReader

Read Mp3 Info (retrofitted to entagged ,done differently to entagged which is why some methods throw RuntimeException) because done elsewhere


Field Summary
 
Fields inherited from class org.jaudiotagger.audio.generic.AudioFileReader
logger
 
Constructor Summary
MP3FileReader()
           
 
Method Summary
protected  GenericAudioHeader getEncodingInfo(java.io.RandomAccessFile raf)
           
protected  Tag getTag(java.io.RandomAccessFile raf)
           
 AudioFile read(java.io.File f)
           
 AudioFile readMustBeWritable(java.io.File f)
          Read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MP3FileReader

public MP3FileReader()
Method Detail

getEncodingInfo

protected GenericAudioHeader getEncodingInfo(java.io.RandomAccessFile raf)
                                      throws CannotReadException,
                                             java.io.IOException
Specified by:
getEncodingInfo in class AudioFileReader
Throws:
CannotReadException
java.io.IOException

getTag

protected Tag getTag(java.io.RandomAccessFile raf)
              throws CannotReadException,
                     java.io.IOException
Specified by:
getTag in class AudioFileReader
Throws:
CannotReadException
java.io.IOException

read

public AudioFile read(java.io.File f)
               throws java.io.IOException,
                      TagException,
                      ReadOnlyFileException,
                      InvalidAudioFrameException
Overrides:
read in class AudioFileReader
Parameters:
f -
Returns:
Throws:
java.io.IOException
TagException
ReadOnlyFileException
InvalidAudioFrameException

readMustBeWritable

public AudioFile readMustBeWritable(java.io.File f)
                             throws java.io.IOException,
                                    TagException,
                                    ReadOnlyFileException,
                                    InvalidAudioFrameException
Read

Parameters:
f -
Returns:
Throws:
ReadOnlyFileException - thrown if the file is not writable
TagException
java.io.IOException
InvalidAudioFrameException