public class OggFileReader extends AudioFileReader
Modifier and Type | Field and Description |
---|---|
static Logger |
logger |
MINIMUM_SIZE_FOR_VALID_AUDIO_FILE
Constructor and Description |
---|
OggFileReader() |
Modifier and Type | Method and Description |
---|---|
protected GenericAudioHeader |
getEncodingInfo(RandomAccessFile raf) |
protected Tag |
getTag(RandomAccessFile raf) |
OggPageHeader |
readOggPageHeader(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(File oggFile)
Summarizes the first five pages, normally all we are interested in
|
void |
summarizeOggPageHeaders(File oggFile)
Summarize all the ogg headers in a file
A useful utility function
|
read
public static Logger logger
protected GenericAudioHeader getEncodingInfo(RandomAccessFile raf) throws CannotReadException, IOException
getEncodingInfo
in class AudioFileReader
CannotReadException
IOException
protected Tag getTag(RandomAccessFile raf) throws CannotReadException, IOException
getTag
in class AudioFileReader
CannotReadException
IOException
public OggPageHeader readOggPageHeader(RandomAccessFile raf, int count) throws CannotReadException, IOException
raf
- count
- CannotReadException
IOException
public void summarizeOggPageHeaders(File oggFile) throws CannotReadException, IOException
oggFile
- CannotReadException
IOException
public void shortSummarizeOggPageHeaders(File oggFile) throws CannotReadException, IOException
oggFile
- CannotReadException
IOException
Copyright © 2005–2020 jthink.net. All rights reserved.