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
Method Summary |
protected GenericAudioHeader |
getEncodingInfo(java.io.RandomAccessFile raf)
|
protected Tag |
getTag(java.io.RandomAccessFile raf)
|
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 containing remaining VorbisComment,SetupHeader and/or Audio |
void |
shortSummarizeOggPageHeaders(java.io.File oggFile)
Summarizes the first five pages, normally all we are interested in |
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
public static java.util.logging.Logger logger
ir
private OggInfoReader ir
vtr
private OggVorbisTagReader vtr
OggFileReader
public OggFileReader()
OggFileReader
public OggFileReader(Fix fix)
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
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 containing 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
shortSummarizeOggPageHeaders
public void shortSummarizeOggPageHeaders(java.io.File oggFile)
throws CannotReadException,
java.io.IOException
- Summarizes the first five pages, normally all we are interested in
- Parameters:
oggFile
-
- Throws:
CannotReadException
java.io.IOException