private PDFObject readKeyword(char start) throws IOException {
  StringBuffer sb=new StringBuffer(String.valueOf(start));
  int c;
  while (isRegularCharacter(c=buf.get())) {
    sb.append((char)c);
  }
  buf.position(buf.position() - 1);
  return new PDFObject(this,PDFObject.KEYWORD,sb.toString());
}

private PDFObject readKeyword ( char start ) throws IOException { StringBuffer sb = new StringBuffer ( String . valueOf ( start ) ) ; int c ; while ( isRegularCharacter ( c = buf . get ( ) ) ) { sb . append ( ( char ) c ) ; } buf . position ( buf . position ( ) - 1 ) ; return new PDFObject ( this , PDFObject . KEYWORD , sb . toString ( ) ) ; }
read a bare keyword . the initial character is passed in as the argument .
