public Object[] parse(String string) throws ParseException {
  ParsePosition position=new ParsePosition(0);
  Object[] result=parse(string,position);
  if (position.getIndex() == 0) {
    throw new ParseException("Parse failure",position.getErrorIndex());
  }
  return result;
}

public Object [ ] parse ( String string ) throws ParseException { ParsePosition position = new ParsePosition ( 0 ) ; Object [ ] result = parse ( string , position ) ; if ( position . getIndex ( ) == 0 ) { throw new ParseException ( "Parse failure" , position . getErrorIndex ( ) ) ; } return result ; }
parses the message arguments from the specified string using the rules of this message format .
