public class Hessian2StreamingInput extends Object
For best performance, use HessianFactory:
HessianFactory factory = new HessianFactory();
Hessian2StreamingInput hIn = factory.createHessian2StreamingInput(is);
| 构造器和说明 |
|---|
Hessian2StreamingInput(InputStream is)
Creates a new Hessian input stream, initialized with an
underlying input stream.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Close the output.
|
void |
endPacket() |
Hessian2Input |
getHessianInput() |
boolean |
isDataAvailable() |
Object |
readObject()
Read the next object
|
void |
setSerializerFactory(SerializerFactory factory) |
Hessian2Input |
startPacket() |
public Hessian2StreamingInput(InputStream is)
is - the underlying output stream.public void setSerializerFactory(SerializerFactory factory)
public boolean isDataAvailable()
public Hessian2Input startPacket() throws IOException
IOExceptionpublic void endPacket()
throws IOException
IOExceptionpublic Hessian2Input getHessianInput()
public Object readObject() throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionCopyright © 2011–2024 The Apache Software Foundation. All rights reserved.