|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Transport
Represents an underlying network transport.
Method Summary | |
---|---|
long |
read(ByteBuffer[] buffers,
int array_offset,
int length)
Read data from the transport into the given buffers. |
void |
setFilter(TransportFilter filter)
|
long |
write(ByteBuffer[] buffers,
int array_offset,
int length)
Write data to the transport from the given buffers. |
Method Detail |
---|
long read(ByteBuffer[] buffers, int array_offset, int length) throws IOException
buffers
- into which bytes are to be placedarray_offset
- offset within the buffer array of the first buffer into which bytes are to be placedlength
- maximum number of buffers to be accessed
IOException
- on read errorlong write(ByteBuffer[] buffers, int array_offset, int length) throws IOException
buffers
- from which bytes are to be retrievedarray_offset
- offset within the buffer array of the first buffer from which bytes are to be retrievedlength
- maximum number of buffers to be accessed
IOException
- on write errorvoid setFilter(TransportFilter filter) throws IOException
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |