public byte[] readRawPacketData(RandomAccessFile raf) throws CannotReadException, IOException {
  logger.fine("Read 1st page");
  OggPageHeader pageHeader=OggPageHeader.read(raf);
  raf.seek(raf.getFilePointer() + pageHeader.getPageLength());
  logger.fine("Read 2nd page");
  pageHeader=OggPageHeader.read(raf);
  byte[] b=new byte[VorbisHeader.FIELD_PACKET_TYPE_LENGTH + VorbisHeader.FIELD_CAPTURE_PATTERN_LENGTH];
  raf.read(b);
  if (!isVorbisCommentHeader(b)) {
    throw new CannotReadException("Cannot find comment block (no vorbiscomment header)");
  }
  byte[] rawVorbisCommentData=convertToVorbisCommentPacket(pageHeader,raf);
  return rawVorbisCommentData;
}

public byte [ ] readRawPacketData ( RandomAccessFile raf ) throws CannotReadException , IOException { logger . fine ( "Read 1st page" ) ; OggPageHeader pageHeader = OggPageHeader . read ( raf ) ; raf . seek ( raf . getFilePointer ( ) + pageHeader . getPageLength ( ) ) ; logger . fine ( "Read 2nd page" ) ; pageHeader = OggPageHeader . read ( raf ) ; byte [ ] b = new byte [ VorbisHeader . FIELD_PACKET_TYPE_LENGTH + VorbisHeader . FIELD_CAPTURE_PATTERN_LENGTH ] ; raf . read ( b ) ; if ( ! isVorbisCommentHeader ( b ) ) { throw new CannotReadException ( "Cannot find comment block (no vorbiscomment header)" ) ; } byte [ ] rawVorbisCommentData = convertToVorbisCommentPacket ( pageHeader , raf ) ; return rawVorbisCommentData ; }
retrieve the raw vorbiscomment packet data , does not include the oggvorbis header
