public class HessianSerializerInput extends HessianInput
HessianSerializerInput is unbuffered, so any client needs to provide its own buffering.
InputStream is = new FileInputStream("test.xml"); HessianOutput in = new HessianSerializerOutput(is); Object obj = in.readObject(); is.close();
InputStream is = ...; // from http connection HessianInput in = new HessianSerializerInput(is); String value; in.startReply(); // read reply header value = in.readString(); // read string value in.completeReply(); // read reply footer
_peek, _refs, _serializerFactory
Constructor and Description |
---|
HessianSerializerInput()
Creates an uninitialized Hessian input stream.
|
HessianSerializerInput(java.io.InputStream is)
Creates a new Hessian input stream, initialized with an
underlying input stream.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.HashMap |
getFieldMap(java.lang.Class cl)
Creates a map of the classes fields.
|
protected java.lang.Object |
readObjectImpl(java.lang.Class cl)
Reads an object from the input stream.
|
addRef, close, completeCall, completeReply, completeValueReply, error, expect, getMethod, getReader, getReplyFault, getSerializerFactory, init, isEnd, parseXML, read, read, readBoolean, readByte, readBytes, readBytes, readCall, readChar, readDouble, readEnd, readFloat, readHeader, readInputStream, readInt, readLength, readListEnd, readListStart, readLong, readMapEnd, readMapStart, readMethod, readNode, readNull, readObject, readObject, readRef, readRemote, readReply, readShort, readString, readString, readType, readUTCDate, resetReferences, resolveRemote, setRef, setSerializerFactory, skipOptionalCall, startCall, startReply
getRemoteResolver, setRemoteResolver
public HessianSerializerInput(java.io.InputStream is)
is
- the underlying input stream.public HessianSerializerInput()
protected java.lang.Object readObjectImpl(java.lang.Class cl) throws java.io.IOException
java.io.IOException
protected java.util.HashMap getFieldMap(java.lang.Class cl)