|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Transport
Transport abstraction.
Method Summary | |
---|---|
byte[] |
dumpStream()
|
void |
flush()
|
SocketAddress |
getRemoteSocketAddress()
Returns the address of the endpoint this transport is connected to, or null if it is unconnected. |
TransportFactory |
getTransportFactory()
|
int |
read4ByteInt()
|
byte[] |
readArray()
reads an vint which is size; then an array having that size. |
short |
readByte()
|
byte[] |
readByteArray(int size)
|
long |
readLong()
|
String |
readString()
|
int |
readUnsignedShort()
|
int |
readVInt()
|
long |
readVLong()
|
void |
release()
|
void |
writeArray(byte[] toAppend)
|
void |
writeByte(short toWrite)
|
void |
writeLong(long longValue)
|
void |
writeString(String string)
|
void |
writeVInt(int vint)
|
void |
writeVLong(long l)
|
Method Detail |
---|
TransportFactory getTransportFactory()
void writeArray(byte[] toAppend)
void writeByte(short toWrite)
void writeVInt(int vint)
void writeVLong(long l)
long readVLong()
int readVInt()
void flush()
short readByte()
void release()
byte[] readArray()
String readString()
byte[] readByteArray(int size)
long readLong()
void writeLong(long longValue)
int readUnsignedShort()
int read4ByteInt()
void writeString(String string)
byte[] dumpStream()
SocketAddress getRemoteSocketAddress()
null
if it is unconnected.
SocketAddress
reprensenting the remote endpoint
of this transport, or null
if it is not connected
yet.
|
--> | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |