protected static class OggAudioInfoTool.InfoPacketReader extends OggPacketReader
| Constructor and Description |
|---|
InfoPacketReader(InputStream inp) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLastSeqNum() |
OggPacket |
getNextPacket()
Returns the next packet in the file, or
null if no more packets remain.
|
OggPacket |
getNextPacketWithSid(int sid)
Returns the next packet with the given SID (Stream ID), or
null if no more packets remain.
|
skipToGranulePosition, skipToSequenceNumber, unreadPacketpublic InfoPacketReader(InputStream inp)
public int getLastSeqNum()
public OggPacket getNextPacket() throws IOException
OggPacketReaderOggPacket.isBeginningOfStream()
to detect if it is the first packet in the
stream or not, and use
OggPacket.getSid() to track which
stream it belongs to.getNextPacket in class OggPacketReaderIOExceptionpublic OggPacket getNextPacketWithSid(int sid) throws IOException
OggPacketReadergetNextPacketWithSid in class OggPacketReaderIOExceptionCopyright © 2021. All rights reserved.