org.gagravarr.vorbis.tools
Class VorbisInfoTool.InfoPacketReader
java.lang.Object
org.gagravarr.ogg.OggPacketReader
org.gagravarr.vorbis.tools.VorbisInfoTool.InfoPacketReader
- Enclosing class:
- VorbisInfoTool
protected static class VorbisInfoTool.InfoPacketReader
- extends OggPacketReader
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VorbisInfoTool.InfoPacketReader
public VorbisInfoTool.InfoPacketReader(InputStream inp)
getNextPacket
public OggPacket getNextPacket()
throws IOException
- Description copied from class:
OggPacketReader
- Returns the next packet in the file, or
null if no more packets remain.
Call
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.
- Overrides:
getNextPacket
in class OggPacketReader
- Throws:
IOException
getNextPacketWithSid
public OggPacket getNextPacketWithSid(int sid)
throws IOException
- Description copied from class:
OggPacketReader
- Returns the next packet with the given SID (Stream ID), or
null if no more packets remain.
Any packets from other streams will be silently discarded.
- Overrides:
getNextPacketWithSid
in class OggPacketReader
- Throws:
IOException
Copyright © 2012. All Rights Reserved.