public abstract class AbstractTransport extends Object implements Transport
Modifier | Constructor and Description |
---|---|
protected |
AbstractTransport(TransportFactory transportFactory) |
Modifier and Type | Method and Description |
---|---|
TransportFactory |
getTransportFactory() |
int |
read4ByteInt() |
byte[] |
readArray()
reads an vint which is size; then an array having that size.
|
long |
readLong() |
String |
readString() |
int |
readUnsignedShort() |
void |
writeArray(byte[] toAppend) |
protected abstract void |
writeBytes(byte[] toAppend) |
void |
writeLong(long longValue) |
void |
writeString(String string) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dumpStream, flush, getRemoteSocketAddress, invalidate, readByte, readByteArray, readVInt, readVLong, release, writeByte, writeVInt, writeVLong
protected AbstractTransport(TransportFactory transportFactory)
public byte[] readArray()
Transport
public String readString()
readString
in interface Transport
public int readUnsignedShort()
readUnsignedShort
in interface Transport
public int read4ByteInt()
read4ByteInt
in interface Transport
public void writeString(String string)
writeString
in interface Transport
public TransportFactory getTransportFactory()
getTransportFactory
in interface Transport
public void writeArray(byte[] toAppend)
writeArray
in interface Transport
protected abstract void writeBytes(byte[] toAppend)
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.