public Object readReply ( Class expectedClass ) throws Throwable { int tag = read ( ) ; if ( tag != ' ' ) error ( "expected hessian reply at " + codeName ( tag ) ) ; int major = read ( ) ; int minor = read ( ) ; tag = read ( ) ; if ( tag == ' ' ) throw prepareFault ( ) ; else { _peek = tag ; Object value = readObject ( expectedClass ) ; completeValueReply ( ) ; return value ; } }
Reads a reply as an object . If the reply has a fault throws the exception .