|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectcom.caucho.hessian.io.AbstractHessianInput
com.caucho.burlap.io.AbstractBurlapInput
com.caucho.burlap.io.BurlapInput
public class BurlapInput
Input stream for Burlap requests.
BurlapInput is unbuffered, so any client needs to provide its own buffering.
InputStream is = ...; // from http connection BurlapInput in = new BurlapInput(is); String value; in.startReply(); // read reply header value = in.readString(); // read string value in.completeReply(); // read reply footer
字段摘要 | |
---|---|
static int |
TAG_BASE64
|
static int |
TAG_BASE64_END
|
static int |
TAG_BOOLEAN
|
static int |
TAG_BOOLEAN_END
|
static int |
TAG_CALL
|
static int |
TAG_CALL_END
|
static int |
TAG_DATE
|
static int |
TAG_DATE_END
|
static int |
TAG_DOUBLE
|
static int |
TAG_DOUBLE_END
|
static int |
TAG_EOF
|
static int |
TAG_FAULT
|
static int |
TAG_FAULT_END
|
static int |
TAG_HEADER
|
static int |
TAG_HEADER_END
|
static int |
TAG_INT
|
static int |
TAG_INT_END
|
static int |
TAG_LENGTH
|
static int |
TAG_LENGTH_END
|
static int |
TAG_LIST
|
static int |
TAG_LIST_END
|
static int |
TAG_LONG
|
static int |
TAG_LONG_END
|
static int |
TAG_MAP
|
static int |
TAG_MAP_END
|
static int |
TAG_METHOD
|
static int |
TAG_METHOD_END
|
static int |
TAG_NULL
|
static int |
TAG_NULL_END
|
static int |
TAG_REF
|
static int |
TAG_REF_END
|
static int |
TAG_REMOTE
|
static int |
TAG_REMOTE_END
|
static int |
TAG_REPLY
|
static int |
TAG_REPLY_END
|
static int |
TAG_STRING
|
static int |
TAG_STRING_END
|
static int |
TAG_TYPE
|
static int |
TAG_TYPE_END
|
static int |
TAG_XML
|
static int |
TAG_XML_END
|
构造方法摘要 | |
---|---|
BurlapInput()
Creates an uninitialized Burlap input stream. |
|
BurlapInput(java.io.InputStream is)
Creates a new Burlap input stream, initialized with an underlying input stream. |
方法摘要 | |
---|---|
int |
addRef(java.lang.Object ref)
Adds a list/map reference. |
void |
completeCall()
Completes reading the call A successful completion will have a single value: </burlap:call> |
void |
completeReply()
Completes reading the call A successful completion will have a single value: </burlap:reply> |
void |
expectTag(int expectTag)
|
java.io.InputStream |
getInputStream()
|
java.lang.String |
getMethod()
Returns the calls method |
java.io.Reader |
getReader()
Starts reading a string. |
java.lang.Throwable |
getReplyFault()
Returns any reply fault. |
SerializerFactory |
getSerializerFactory()
Gets the serializer factory. |
void |
init(java.io.InputStream is)
Initialize the burlap stream with the underlying input stream. |
boolean |
isEnd()
Returns true if this is the end of a list or a map. |
boolean |
readBoolean()
Reads a boolean <boolean>0</boolean> <boolean>1</boolean> |
byte |
readByte()
Reads a byte <int>value</int> |
byte[] |
readBytes()
Reads a byte array <base64>... |
int |
readCall()
Starts reading the call A successful completion will have a single value: <burlap:call> |
double |
readDouble()
Reads a double <double>value</double> |
void |
readEnd()
Reads the end byte. |
float |
readFloat()
Reads a float <double>value</double> |
java.lang.String |
readHeader()
Reads a header, returning null if there are no headers. |
java.io.InputStream |
readInputStream()
Starts reading a byte array using an input stream. |
int |
readInt()
Reads an integer <int>value</int> |
int |
readLength()
Reads a length <length>value</length> |
void |
readListEnd()
Reads the end of the map |
int |
readListStart()
Reads the start of a list. |
long |
readLocalDate()
Reads a date. |
long |
readLong()
Reads a long <long>value</long> |
void |
readMapEnd()
Reads the end of the map |
int |
readMapStart()
Reads the start of a map. |
java.lang.String |
readMethod()
Reads the method <method>method</method> |
org.w3c.dom.Node |
readNode()
Reads an XML node. |
void |
readNull()
Reads a null <null></null> |
java.lang.Object |
readObject()
Reads an arbitrary object from the input stream when the type is unknown. |
java.lang.Object |
readObject(java.lang.Class cl)
Reads an object from the input stream with an expected type. |
java.lang.Object |
readRef()
Reads a reference. |
java.lang.Object |
readRemote()
Reads a remote object. |
java.lang.Object |
readReply(java.lang.Class expectedClass)
Reads a reply as an object. |
short |
readShort()
Reads a short <int>value</int> |
java.lang.String |
readString()
Reads a string <string>value</string> |
java.lang.String |
readType()
Parses a type from the stream. |
long |
readUTCDate()
Reads a date. |
java.lang.Object |
resolveRemote(java.lang.String type,
java.lang.String url)
Resolves a remote object. |
void |
setRef(int i,
java.lang.Object ref)
Adds a list/map reference. |
void |
setSerializerFactory(SerializerFactory factory)
Sets the serializer factory. |
void |
startCall()
Starts reading the call <burlap:call> <method>method</method> |
void |
startReply()
Starts reading the reply A successful completion will have a single value: <burlap:reply> <value> |
从类 com.caucho.hessian.io.AbstractHessianInput 继承的方法 |
---|
close, getRemoteResolver, readMethodArgLength, readToOutputStream, resetReferences, setRemoteResolver, skipOptionalCall, startReplyBody |
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
public static final int TAG_EOF
public static final int TAG_NULL
public static final int TAG_BOOLEAN
public static final int TAG_INT
public static final int TAG_LONG
public static final int TAG_DOUBLE
public static final int TAG_DATE
public static final int TAG_STRING
public static final int TAG_XML
public static final int TAG_BASE64
public static final int TAG_MAP
public static final int TAG_LIST
public static final int TAG_TYPE
public static final int TAG_LENGTH
public static final int TAG_REF
public static final int TAG_REMOTE
public static final int TAG_CALL
public static final int TAG_REPLY
public static final int TAG_FAULT
public static final int TAG_METHOD
public static final int TAG_HEADER
public static final int TAG_NULL_END
public static final int TAG_BOOLEAN_END
public static final int TAG_INT_END
public static final int TAG_LONG_END
public static final int TAG_DOUBLE_END
public static final int TAG_DATE_END
public static final int TAG_STRING_END
public static final int TAG_XML_END
public static final int TAG_BASE64_END
public static final int TAG_MAP_END
public static final int TAG_LIST_END
public static final int TAG_TYPE_END
public static final int TAG_LENGTH_END
public static final int TAG_REF_END
public static final int TAG_REMOTE_END
public static final int TAG_CALL_END
public static final int TAG_REPLY_END
public static final int TAG_FAULT_END
public static final int TAG_METHOD_END
public static final int TAG_HEADER_END
构造方法详细信息 |
---|
public BurlapInput()
public BurlapInput(java.io.InputStream is)
is
- the underlying input stream.方法详细信息 |
---|
public void setSerializerFactory(SerializerFactory factory)
AbstractHessianInput
中的 setSerializerFactory
public SerializerFactory getSerializerFactory()
public void init(java.io.InputStream is)
AbstractHessianInput
中的 init
public java.lang.String getMethod()
AbstractHessianInput
中的 getMethod
public java.lang.Throwable getReplyFault()
public void startCall() throws java.io.IOException
<burlap:call> <method>method</method>
AbstractHessianInput
中的 startCall
java.io.IOException
public int readCall() throws java.io.IOException
A successful completion will have a single value:
<burlap:call>
AbstractHessianInput
中的 readCall
java.io.IOException
public java.lang.String readMethod() throws java.io.IOException
<method>method</method>
AbstractHessianInput
中的 readMethod
java.io.IOException
public void completeCall() throws java.io.IOException
A successful completion will have a single value:
</burlap:call>
AbstractHessianInput
中的 completeCall
java.io.IOException
public java.lang.Object readReply(java.lang.Class expectedClass) throws java.lang.Throwable
AbstractHessianInput
中的 readReply
java.lang.Throwable
public void startReply() throws java.lang.Throwable
A successful completion will have a single value:
<burlap:reply> <value>
AbstractHessianInput
中的 startReply
java.lang.Throwable
public void completeReply() throws java.io.IOException
A successful completion will have a single value:
</burlap:reply>
AbstractHessianInput
中的 completeReply
java.io.IOException
public java.lang.String readHeader() throws java.io.IOException
<header>value</header>
AbstractHessianInput
中的 readHeader
java.io.IOException
public void readNull() throws java.io.IOException
<null></null>
AbstractHessianInput
中的 readNull
java.io.IOException
public boolean readBoolean() throws java.io.IOException
<boolean>0</boolean> <boolean>1</boolean>
AbstractHessianInput
中的 readBoolean
java.io.IOException
public byte readByte() throws java.io.IOException
<int>value</int>
java.io.IOException
public short readShort() throws java.io.IOException
<int>value</int>
java.io.IOException
public int readInt() throws java.io.IOException
<int>value</int>
AbstractHessianInput
中的 readInt
java.io.IOException
public long readLong() throws java.io.IOException
<long>value</long>
AbstractHessianInput
中的 readLong
java.io.IOException
public float readFloat() throws java.io.IOException
<double>value</double>
java.io.IOException
public double readDouble() throws java.io.IOException
<double>value</double>
AbstractHessianInput
中的 readDouble
java.io.IOException
public long readUTCDate() throws java.io.IOException
<date>ISO-8609 date</date>
AbstractHessianInput
中的 readUTCDate
java.io.IOException
public long readLocalDate() throws java.io.IOException
<date>ISO-8609 date</date>
java.io.IOException
public java.lang.String readString() throws java.io.IOException
<string>value</string>
AbstractHessianInput
中的 readString
java.io.IOException
public org.w3c.dom.Node readNode() throws java.io.IOException
&xml;xml string</xml>
AbstractHessianInput
中的 readNode
java.io.IOException
public byte[] readBytes() throws java.io.IOException
<base64>...</base64>
AbstractHessianInput
中的 readBytes
java.io.IOException
public int readLength() throws java.io.IOException
<length>value</length>
AbstractHessianInput
中的 readLength
java.io.IOException
public java.lang.Object readObject(java.lang.Class cl) throws java.io.IOException
AbstractHessianInput
中的 readObject
cl
- the expected class if the protocol doesn't supply it.
java.io.IOException
public java.lang.Object readObject() throws java.io.IOException
AbstractHessianInput
中的 readObject
java.io.IOException
public java.lang.Object readRemote() throws java.io.IOException
AbstractHessianInput
中的 readRemote
java.io.IOException
public java.lang.Object readRef() throws java.io.IOException
AbstractHessianInput
中的 readRef
java.io.IOException
public int readListStart() throws java.io.IOException
AbstractHessianInput
中的 readListStart
java.io.IOException
public int readMapStart() throws java.io.IOException
AbstractHessianInput
中的 readMapStart
java.io.IOException
public boolean isEnd() throws java.io.IOException
AbstractHessianInput
中的 isEnd
java.io.IOException
public void readEnd() throws java.io.IOException
AbstractHessianInput
中的 readEnd
java.io.IOException
public void readMapEnd() throws java.io.IOException
AbstractHessianInput
中的 readMapEnd
java.io.IOException
public void readListEnd() throws java.io.IOException
AbstractHessianInput
中的 readListEnd
java.io.IOException
public int addRef(java.lang.Object ref)
AbstractHessianInput
中的 addRef
public void setRef(int i, java.lang.Object ref)
AbstractHessianInput
中的 setRef
public java.lang.Object resolveRemote(java.lang.String type, java.lang.String url) throws java.io.IOException
java.io.IOException
public java.lang.String readType() throws java.io.IOException
<type>type</type>
AbstractHessianInput
中的 readType
java.io.IOException
public void expectTag(int expectTag) throws java.io.IOException
java.io.IOException
public java.io.Reader getReader()
AbstractHessianInput
复制的描述s b16 b8 non-final string chunk S b16 b8 final string chunk
AbstractHessianInput
中的 getReader
public java.io.InputStream readInputStream()
AbstractHessianInput
复制的描述b b16 b8 non-final binary chunk B b16 b8 final binary chunk
AbstractHessianInput
中的 readInputStream
public java.io.InputStream getInputStream()
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |