|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
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 中的 setSerializerFactorypublic SerializerFactory getSerializerFactory()
public void init(java.io.InputStream is)
AbstractHessianInput 中的 initpublic java.lang.String getMethod()
AbstractHessianInput 中的 getMethodpublic java.lang.Throwable getReplyFault()
public void startCall()
throws java.io.IOException
<burlap:call> <method>method</method>
AbstractHessianInput 中的 startCalljava.io.IOException
public int readCall()
throws java.io.IOException
A successful completion will have a single value:
<burlap:call>
AbstractHessianInput 中的 readCalljava.io.IOException
public java.lang.String readMethod()
throws java.io.IOException
<method>method</method>
AbstractHessianInput 中的 readMethodjava.io.IOException
public void completeCall()
throws java.io.IOException
A successful completion will have a single value:
</burlap:call>
AbstractHessianInput 中的 completeCalljava.io.IOException
public java.lang.Object readReply(java.lang.Class expectedClass)
throws java.lang.Throwable
AbstractHessianInput 中的 readReplyjava.lang.Throwable
public void startReply()
throws java.lang.Throwable
A successful completion will have a single value:
<burlap:reply> <value>
AbstractHessianInput 中的 startReplyjava.lang.Throwable
public void completeReply()
throws java.io.IOException
A successful completion will have a single value:
</burlap:reply>
AbstractHessianInput 中的 completeReplyjava.io.IOException
public java.lang.String readHeader()
throws java.io.IOException
<header>value</header>
AbstractHessianInput 中的 readHeaderjava.io.IOException
public void readNull()
throws java.io.IOException
<null></null>
AbstractHessianInput 中的 readNulljava.io.IOException
public boolean readBoolean()
throws java.io.IOException
<boolean>0</boolean> <boolean>1</boolean>
AbstractHessianInput 中的 readBooleanjava.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 中的 readIntjava.io.IOException
public long readLong()
throws java.io.IOException
<long>value</long>
AbstractHessianInput 中的 readLongjava.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 中的 readDoublejava.io.IOException
public long readUTCDate()
throws java.io.IOException
<date>ISO-8609 date</date>
AbstractHessianInput 中的 readUTCDatejava.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 中的 readStringjava.io.IOException
public org.w3c.dom.Node readNode()
throws java.io.IOException
&xml;xml string</xml>
AbstractHessianInput 中的 readNodejava.io.IOException
public byte[] readBytes()
throws java.io.IOException
<base64>...</base64>
AbstractHessianInput 中的 readBytesjava.io.IOException
public int readLength()
throws java.io.IOException
<length>value</length>
AbstractHessianInput 中的 readLengthjava.io.IOException
public java.lang.Object readObject(java.lang.Class cl)
throws java.io.IOException
AbstractHessianInput 中的 readObjectcl - the expected class if the protocol doesn't supply it.
java.io.IOException
public java.lang.Object readObject()
throws java.io.IOException
AbstractHessianInput 中的 readObjectjava.io.IOException
public java.lang.Object readRemote()
throws java.io.IOException
AbstractHessianInput 中的 readRemotejava.io.IOException
public java.lang.Object readRef()
throws java.io.IOException
AbstractHessianInput 中的 readRefjava.io.IOException
public int readListStart()
throws java.io.IOException
AbstractHessianInput 中的 readListStartjava.io.IOException
public int readMapStart()
throws java.io.IOException
AbstractHessianInput 中的 readMapStartjava.io.IOException
public boolean isEnd()
throws java.io.IOException
AbstractHessianInput 中的 isEndjava.io.IOException
public void readEnd()
throws java.io.IOException
AbstractHessianInput 中的 readEndjava.io.IOException
public void readMapEnd()
throws java.io.IOException
AbstractHessianInput 中的 readMapEndjava.io.IOException
public void readListEnd()
throws java.io.IOException
AbstractHessianInput 中的 readListEndjava.io.IOExceptionpublic 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 中的 readTypejava.io.IOException
public void expectTag(int expectTag)
throws java.io.IOException
java.io.IOExceptionpublic java.io.Reader getReader()
AbstractHessianInput 复制的描述s b16 b8 non-final string chunk S b16 b8 final string chunk
AbstractHessianInput 中的 getReaderpublic java.io.InputStream readInputStream()
AbstractHessianInput 复制的描述b b16 b8 non-final binary chunk B b16 b8 final binary chunk
AbstractHessianInput 中的 readInputStreampublic java.io.InputStream getInputStream()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||