org.jaudiotagger.audio.ogg
Class OggFileReader

java.lang.Object
  extended by org.jaudiotagger.audio.generic.AudioFileReader
      extended by org.jaudiotagger.audio.ogg.OggFileReader

public class OggFileReader
extends AudioFileReader

Read Ogg File Tag and Encoding information

Only implemented for ogg files containing a vorbis stream with vorbis comments


Field Summary
static java.util.logging.Logger logger
           
 
Constructor Summary
OggFileReader()
           
 
Method Summary
 OggPageHeader readOggPageHeader(java.io.RandomAccessFile raf, int count)
          Return count Ogg Page header, count starts from zero count=0; should return PageHeader that contains Vorbis Identification Header count=1; should return Pageheader that contains VorbisComment and possibly SetupHeader count>=2; should return PageHeader containng remaining VorbisComment,SetupHeader and/or Audio
 void summarizeOggPageHeaders(java.io.File oggFile)
          Summarize all the ogg headers in a file A useful utility function
 
Methods inherited from class org.jaudiotagger.audio.generic.AudioFileReader
read
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static java.util.logging.Logger logger
Constructor Detail

OggFileReader

public OggFileReader()
Method Detail

readOggPageHeader

public OggPageHeader readOggPageHeader(java.io.RandomAccessFile raf,
                                       int count)
                                throws CannotReadException,
                                       java.io.IOException
Return count Ogg Page header, count starts from zero count=0; should return PageHeader that contains Vorbis Identification Header count=1; should return Pageheader that contains VorbisComment and possibly SetupHeader count>=2; should return PageHeader containng remaining VorbisComment,SetupHeader and/or Audio

Parameters:
raf -
count -
Returns:
Throws:
CannotReadException
java.io.IOException

summarizeOggPageHeaders

public void summarizeOggPageHeaders(java.io.File oggFile)
                             throws CannotReadException,
                                    java.io.IOException
Summarize all the ogg headers in a file A useful utility function

Parameters:
oggFile -
Throws:
CannotReadException
java.io.IOException