private String readSentenceHeader(int aField,boolean aPeek) throws IOException {
  if (aPeek) {
    br.mark(16000);
  }
  String line=br.readLine();
  while (line != null) {
    if (!line.startsWith("%%")) {
      String[] parts=line.split("\\s+");
      if (aPeek) {
        br.reset();
      }
      return parts[aField];
    }
    line=br.readLine();
  }
  return null;
}

private String readSentenceHeader ( int aField , boolean aPeek ) throws IOException { if ( aPeek ) { br . mark ( 16000 ) ; } String line = br . readLine ( ) ; while ( line != null ) { if ( ! line . startsWith ( "%%" ) ) { String [ ] parts = line . split ( "\\s+" ) ; if ( aPeek ) { br . reset ( ) ; } return parts [ aField ] ; } line = br . readLine ( ) ; } return null ; }
read the originid from the # bos line that is expected to follow .
