public static Result fromContent(String content,String format) throws IllegalArgumentException {
  if (content == null) {
    throw new IllegalArgumentException("content cannot be null");
  }
  if (format == null) {
    throw new IllegalArgumentException("format cannot be null");
  }
  try {
    return fromContent(new InputStreamReader(new ByteArrayInputStream(content.getBytes("UTF-8")),"UTF-8"),format);
  }
 catch (  IOException e) {
    throw new IllegalArgumentException(e.getMessage());
  }
}

public static Result fromContent ( String content , String format ) throws IllegalArgumentException { if ( content == null ) { throw new IllegalArgumentException ( "content cannot be null" ) ; } if ( format == null ) { throw new IllegalArgumentException ( "format cannot be null" ) ; } try { return fromContent ( new InputStreamReader ( new ByteArrayInputStream ( content . getBytes ( "UTF-8" ) ) , "UTF-8" ) , format ) ; } catch ( IOException e ) { throw new IllegalArgumentException ( e . getMessage ( ) ) ; } }
create an evaluator object from a structured content document ( xml , json , etc ) as a string .
