org.gagravarr.vorbis.tools
Class VorbisInfoTool.InfoPacketReader

java.lang.Object
  extended by org.gagravarr.ogg.OggPacketReader
      extended by org.gagravarr.vorbis.tools.VorbisInfoTool.InfoPacketReader
Enclosing class:
VorbisInfoTool

protected static class VorbisInfoTool.InfoPacketReader
extends OggPacketReader


Constructor Summary
VorbisInfoTool.InfoPacketReader(InputStream inp)
           
 
Method Summary
 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.
 
Methods inherited from class org.gagravarr.ogg.OggPacketReader
skipToGranulePosition, skipToSequenceNumber, unreadPacket
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VorbisInfoTool.InfoPacketReader

public VorbisInfoTool.InfoPacketReader(InputStream inp)
Method Detail

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.