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, waitdumpStream, flush, getRemoteSocketAddress, invalidate, readByte, readByteArray, readVInt, readVLong, release, writeByte, writeVInt, writeVLongprotected AbstractTransport(TransportFactory transportFactory)
public byte[] readArray()
Transportpublic String readString()
readString in interface Transportpublic int readUnsignedShort()
readUnsignedShort in interface Transportpublic int read4ByteInt()
read4ByteInt in interface Transportpublic void writeString(String string)
writeString in interface Transportpublic TransportFactory getTransportFactory()
getTransportFactory in interface Transportpublic void writeArray(byte[] toAppend)
writeArray in interface Transportprotected abstract void writeBytes(byte[] toAppend)
Copyright © 2017 JBoss, a division of Red Hat. All Rights Reserved.