org.jaudiotagger.audio.ogg
Class OggFileReader
java.lang.Object
org.jaudiotagger.audio.generic.AudioFileReader
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
|
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
public static java.util.logging.Logger logger
OggFileReader
public OggFileReader()
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