|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--org.apache.catalina.connector.warp.WarpPacket
フィールドの概要 | |
protected byte[] |
buffer
This packet's data buffer |
protected int |
pointer
|
protected int |
size
Number of bytes stored in the buffer |
コンストラクタの概要 | |
WarpPacket()
Construct a new WarpPacket instance. |
メソッドの概要 | |
java.lang.String |
dump()
|
int |
getType()
Return the type of this packet. |
int |
readInteger()
Read a signed integer value (32 bit) from the packet buffer. |
java.lang.String |
readString()
Read a string from the packet buffer. |
int |
readUnsignedShort()
Read an unsigned short value (16 bit) from the packet buffer. |
void |
reset()
Reset this packet. |
void |
setType(int type)
Set this packet type. |
void |
writeInteger(int value)
Write a signed integer value (32 bit) in the packet buffer. |
void |
writeString(java.lang.String string)
Write a string into the packet buffer. |
void |
writeUnsignedShort(int value)
Write an unsigned short value (16 bit) in the packet buffer. |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected byte[] buffer
protected int size
protected int pointer
コンストラクタの詳細 |
public WarpPacket()
メソッドの詳細 |
public void reset()
public void setType(int type)
type
- The type of this packet.public int getType()
public void writeUnsignedShort(int value)
value
- The unsigned short value to write.java.lang.IllegalArgumentException
- If the value is negative or greater
than 65535.ArrayIndexOutOfBoundsException
- If the packet buffer cannot
contain the new value.public void writeInteger(int value)
value
- The signed integer value to write.ArrayIndexOutOfBoundsException
- If the packet buffer cannot
contain the new value.public void writeString(java.lang.String string)
string
- The string to write into the packet buffer.ArrayIndexOutOfBoundsException
- If the packet buffer cannot
contain the new value.java.lang.RuntimeException
- If the platform doesn't support UTF-8
encoding.public int readUnsignedShort()
ArrayIndexOutOfBoundsException
- If no data is left in the
packet buffer to be read.public int readInteger()
ArrayIndexOutOfBoundsException
- If no data is left in the
packet buffer to be read.public java.lang.String readString()
ArrayIndexOutOfBoundsException
- If no data is left in the
packet buffer to be read.public java.lang.String dump()
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |