类 HessianSerializerInput
- java.lang.Object
-
- com.alibaba.com.caucho.hessian.io.AbstractHessianInput
-
- com.alibaba.com.caucho.hessian.io.HessianInput
-
- com.alibaba.com.caucho.hessian.io.HessianSerializerInput
-
public class HessianSerializerInput extends HessianInput
Input stream for Hessian requests, deserializing objects using the java.io.Serialization protocol.HessianSerializerInput is unbuffered, so any client needs to provide its own buffering.
Serialization
InputStream is = new FileInputStream("test.xml"); HessianOutput in = new HessianSerializerOutput(is); Object obj = in.readObject(); is.close();
Parsing a Hessian reply
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
-
-
构造器概要
构造器 构造器 说明 HessianSerializerInput()
Creates an uninitialized Hessian input stream.HessianSerializerInput(InputStream is)
Creates a new Hessian input stream, initialized with an underlying input stream.
-
方法概要
-
从类继承的方法 com.alibaba.com.caucho.hessian.io.HessianInput
addRef, checkAndReadNull, close, completeCall, completeReply, completeValueReply, getMethod, getReader, getReplyFault, getSerializerFactory, init, isEnd, readBoolean, readByte, readBytes, readBytes, readCall, readChar, readDouble, readEnd, readFloat, readHeader, readInputStream, readInt, readLength, readListEnd, readListStart, readLong, readMapEnd, readMapStart, readMethod, readNode, readNull, readObject, readObject, readObject, readObject, readRef, readRemote, readReply, readShort, readString, readString, readType, readUTCDate, resetReferences, resolveRemote, setRef, setSerializerFactory, skipOptionalCall, startCall, startReply
-
从类继承的方法 com.alibaba.com.caucho.hessian.io.AbstractHessianInput
getRemoteResolver, readMethodArgLength, setRemoteResolver
-
-
-
-
构造器详细资料
-
HessianSerializerInput
public HessianSerializerInput(InputStream is)
Creates a new Hessian input stream, initialized with an underlying input stream.- 参数:
is
- the underlying input stream.
-
HessianSerializerInput
public HessianSerializerInput()
Creates an uninitialized Hessian input stream.
-
-