code: public void skipToSequenceNumber(int sid, int sequenceNumber) throws IOException {
          OggPacket p = null;
          while( (p = getNextPacket()) != null ) {
              if(p.getSid() == sid && p.getSequenceNumber() >= sequenceNumber) {
                  nextPacket = p;
                  break;
              }
          }
      }
docs: Skips forward until the first packet with a Sequence Number
  of equal or greater than that specified. Call {@link #getNextPacket()}
  to retrieve this packet.
  This method advances across all streams, but only searches the
  specified one.
  @param sid The ID of the stream who's packets we will search
  @param sequenceNumber The sequence number we're looking for