protected static class VorbisInfoTool.InfoPacketReader extends OggPacketReader
Constructor and Description |
---|
InfoPacketReader(InputStream inp) |
Modifier and Type | Method and Description |
---|---|
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, unreadPacket
public InfoPacketReader(InputStream inp)
public OggPacket getNextPacket() throws IOException
OggPacketReader
OggPacket.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 OggPacketReader
IOException
public OggPacket getNextPacketWithSid(int sid) throws IOException
OggPacketReader
getNextPacketWithSid
in class OggPacketReader
IOException
Copyright © 2015. All rights reserved.