static String scanPublicID(StringBuffer publicID,IXMLReader reader) throws IOException, XMLParseException {
  if (!XMLUtil.checkLiteral(reader,"UBLIC")) {
    return null;
  }
  XMLUtil.skipWhitespace(reader,null);
  publicID.append(XMLUtil.scanString(reader,'\0',null));
  XMLUtil.skipWhitespace(reader,null);
  return XMLUtil.scanString(reader,'\0',null);
}

static String scanPublicID ( StringBuffer publicID , IXMLReader reader ) throws IOException , XMLParseException { if ( ! XMLUtil . checkLiteral ( reader , "UBLIC" ) ) { return null ; } XMLUtil . skipWhitespace ( reader , null ) ; publicID . append ( XMLUtil . scanString ( reader , '\0' , null ) ) ; XMLUtil . skipWhitespace ( reader , null ) ; return XMLUtil . scanString ( reader , '\0' , null ) ; }
scans a public id .
