Package one.nio.rpc.stream
Interface RpcStream
-
- All Superinterfaces:
java.lang.AutoCloseable,BaseStream,java.io.DataInput,java.io.DataOutput,java.io.ObjectInput,java.io.ObjectOutput
- All Known Implementing Classes:
RpcStreamImpl,StreamProxy
public interface RpcStream extends BaseStream, java.io.ObjectInput, java.io.ObjectOutput
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static RpcStreamcreate(StreamHandler<RpcStream> handler)voidread(java.nio.ByteBuffer buf)voidwrite(java.nio.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
-
-
-
-
Method Detail
-
read
void read(java.nio.ByteBuffer buf) throws java.io.IOException
- Throws:
java.io.IOException
-
write
void write(java.nio.ByteBuffer buf) throws java.io.IOException- Throws:
java.io.IOException
-
create
static RpcStream create(StreamHandler<RpcStream> handler)
-
-