Package one.nio.rpc.stream
Interface RpcStream
-
- All Superinterfaces:
AutoCloseable,BaseStream,DataInput,DataOutput,ObjectInput,ObjectOutput
- All Known Implementing Classes:
RpcStreamImpl,StreamProxy
public interface RpcStream extends BaseStream, ObjectInput, ObjectOutput
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static RpcStreamcreate(StreamHandler<RpcStream> handler)voidread(ByteBuffer buf)voidwrite(ByteBuffer buf)-
Methods inherited from interface one.nio.rpc.stream.BaseStream
close, getBytesRead, getBytesWritten, getLocalAddress, getRemoteAddress, invalidate, socket
-
Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
-
Methods inherited from interface java.io.DataOutput
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
-
Methods inherited from interface java.io.ObjectInput
available, close, read, read, read, readObject, skip
-
Methods inherited from interface java.io.ObjectOutput
close, flush, write, write, write, writeObject
-
-
-
-
Method Detail
-
read
void read(ByteBuffer buf) throws IOException
- Throws:
IOException
-
write
void write(ByteBuffer buf) throws IOException
- Throws:
IOException
-
create
static RpcStream create(StreamHandler<RpcStream> handler)
-
-