public OggPageHeader readOggPageHeader(RandomAccessFile raf,int count) throws CannotReadException, IOException {
  OggPageHeader pageHeader=OggPageHeader.read(raf);
  while (count > 0) {
    raf.seek(raf.getFilePointer() + pageHeader.getPageLength());
    pageHeader=OggPageHeader.read(raf);
    count--;
  }
  return pageHeader;
}

public OggPageHeader readOggPageHeader ( RandomAccessFile raf , int count ) throws CannotReadException , IOException { OggPageHeader pageHeader = OggPageHeader . read ( raf ) ; while ( count > 0 ) { raf . seek ( raf . getFilePointer ( ) + pageHeader . getPageLength ( ) ) ; pageHeader = OggPageHeader . read ( raf ) ; count -- ; } return pageHeader ; }
return count ogg page header , count starts from zero count = 0 ; should return pageheader that contains vorbis identification header count = 1 ; should return pageheader that contains vorbiscomment and possibly setupheader count > = 2 ; should return pageheader containing remaining vorbiscomment , setupheader and / or audio
