public abstract class AbstractHessianInput
extends java.lang.Object
AbstractHessianInput in = ...; // get input String value; in.startReply(); // read reply header value = in.readString(); // read string value in.completeReply(); // read reply footer
Constructor and Description |
---|
AbstractHessianInput() |
Modifier and Type | Method and Description |
---|---|
abstract int |
addRef(java.lang.Object obj)
Adds an object reference.
|
void |
close() |
abstract void |
completeCall()
Completes reading the call
|
abstract void |
completeReply()
Completes reading the call
|
abstract java.lang.String |
getMethod()
Returns the call's method
|
abstract java.io.Reader |
getReader()
Starts reading a string.
|
HessianRemoteResolver |
getRemoteResolver()
Sets the resolver used to lookup remote objects.
|
void |
init(java.io.InputStream is)
Initialize the Hessian stream with the underlying input stream.
|
abstract boolean |
isEnd()
Returns true if the data has ended.
|
abstract boolean |
readBoolean()
Reads a boolean
|
abstract byte[] |
readBytes()
Reads a byte array.
|
abstract int |
readCall()
Reads the call
|
abstract double |
readDouble()
Reads a double.
|
abstract void |
readEnd()
Read the end byte
|
abstract java.lang.String |
readHeader()
Reads a header, returning null if there are no headers.
|
abstract java.io.InputStream |
readInputStream()
Starts reading a byte array using an input stream.
|
abstract int |
readInt()
Reads an integer
|
abstract int |
readLength()
Reads the length of a list.
|
abstract void |
readListEnd()
Read the end byte
|
abstract int |
readListStart()
Reads the start of a list
|
abstract long |
readLong()
Reads a long
|
abstract void |
readMapEnd()
Read the end byte
|
abstract int |
readMapStart()
Reads the start of a map
|
abstract java.lang.String |
readMethod()
Starts reading the call
|
int |
readMethodArgLength()
Reads the number of method arguments
|
org.w3c.dom.Node |
readNode()
Reads an XML node encoded in UTF-8
|
abstract void |
readNull()
Reads a null
|
abstract java.lang.Object |
readObject()
Reads an arbitrary object from the input stream.
|
abstract java.lang.Object |
readObject(java.lang.Class expectedClass)
Reads an arbitrary object from the input stream.
|
abstract java.lang.Object |
readRef()
Reads a reference
|
abstract java.lang.Object |
readRemote()
Reads a remote object reference to the stream.
|
abstract java.lang.Object |
readReply(java.lang.Class expectedClass)
Reads a reply as an object.
|
abstract java.lang.String |
readString()
Reads a string encoded in UTF-8
|
boolean |
readToOutputStream(java.io.OutputStream os)
Reads data to an output stream.
|
abstract java.lang.String |
readType()
Reads an object type.
|
abstract long |
readUTCDate()
Reads a date.
|
void |
resetReferences()
Resets the references for streaming.
|
abstract void |
setRef(int i,
java.lang.Object obj)
Sets an object reference.
|
void |
setRemoteResolver(HessianRemoteResolver resolver)
Sets the resolver used to lookup remote objects.
|
void |
setSerializerFactory(SerializerFactory ser)
Sets the serializer factory.
|
void |
skipOptionalCall()
For backward compatibility with HessianSkeleton
|
abstract void |
startCall()
Starts reading the call, including the headers.
|
abstract void |
startReply()
Starts reading the reply
|
void |
startReplyBody()
Starts reading the body of the reply, i.e.
|
public void init(java.io.InputStream is)
public abstract java.lang.String getMethod()
public void setRemoteResolver(HessianRemoteResolver resolver)
public HessianRemoteResolver getRemoteResolver()
public void setSerializerFactory(SerializerFactory ser)
public abstract int readCall() throws java.io.IOException
c major minor
java.io.IOException
public void skipOptionalCall() throws java.io.IOException
java.io.IOException
public abstract java.lang.String readHeader() throws java.io.IOException
H b16 b8 value
java.io.IOException
public abstract java.lang.String readMethod() throws java.io.IOException
A successful completion will have a single value:
m b16 b8 method
java.io.IOException
public int readMethodArgLength() throws java.io.IOException
java.io.IOException
public abstract void startCall() throws java.io.IOException
The call expects the following protocol data
c major minor m b16 b8 method
java.io.IOException
public abstract void completeCall() throws java.io.IOException
The call expects the following protocol data
Z
java.io.IOException
public abstract java.lang.Object readReply(java.lang.Class expectedClass) throws java.lang.Throwable
java.lang.Throwable
public abstract void startReply() throws java.lang.Throwable
A successful completion will have a single value:
r v
java.lang.Throwable
public void startReplyBody() throws java.lang.Throwable
java.lang.Throwable
public abstract void completeReply() throws java.io.IOException
A successful completion will have a single value:
z
java.io.IOException
public abstract boolean readBoolean() throws java.io.IOException
T F
java.io.IOException
public abstract void readNull() throws java.io.IOException
N
java.io.IOException
public abstract int readInt() throws java.io.IOException
I b32 b24 b16 b8
java.io.IOException
public abstract long readLong() throws java.io.IOException
L b64 b56 b48 b40 b32 b24 b16 b8
java.io.IOException
public abstract double readDouble() throws java.io.IOException
D b64 b56 b48 b40 b32 b24 b16 b8
java.io.IOException
public abstract long readUTCDate() throws java.io.IOException
T b64 b56 b48 b40 b32 b24 b16 b8
java.io.IOException
public abstract java.lang.String readString() throws java.io.IOException
s b16 b8 non-final string chunk S b16 b8 final string chunk
java.io.IOException
public org.w3c.dom.Node readNode() throws java.io.IOException
x b16 b8 non-final xml chunk X b16 b8 final xml chunk
java.io.IOException
public abstract java.io.Reader getReader() throws java.io.IOException
s b16 b8 non-final string chunk S b16 b8 final string chunk
java.io.IOException
public abstract java.io.InputStream readInputStream() throws java.io.IOException
b b16 b8 non-final binary chunk B b16 b8 final binary chunk
java.io.IOException
public boolean readToOutputStream(java.io.OutputStream os) throws java.io.IOException
b b16 b8 non-final binary chunk B b16 b8 final binary chunk
java.io.IOException
public abstract byte[] readBytes() throws java.io.IOException
b b16 b8 non-final binary chunk B b16 b8 final binary chunk
java.io.IOException
public abstract java.lang.Object readObject(java.lang.Class expectedClass) throws java.io.IOException
expectedClass
- the expected class if the protocol doesn't supply it.java.io.IOException
public abstract java.lang.Object readObject() throws java.io.IOException
java.io.IOException
public abstract java.lang.Object readRemote() throws java.io.IOException
'r' 't' b16 b8 type url
java.io.IOException
public abstract java.lang.Object readRef() throws java.io.IOException
R b32 b24 b16 b8
java.io.IOException
public abstract int addRef(java.lang.Object obj) throws java.io.IOException
java.io.IOException
public abstract void setRef(int i, java.lang.Object obj) throws java.io.IOException
java.io.IOException
public void resetReferences()
public abstract int readListStart() throws java.io.IOException
java.io.IOException
public abstract int readLength() throws java.io.IOException
java.io.IOException
public abstract int readMapStart() throws java.io.IOException
java.io.IOException
public abstract java.lang.String readType() throws java.io.IOException
java.io.IOException
public abstract boolean isEnd() throws java.io.IOException
java.io.IOException
public abstract void readEnd() throws java.io.IOException
java.io.IOException
public abstract void readMapEnd() throws java.io.IOException
java.io.IOException
public abstract void readListEnd() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException