|
|||||||||
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(java.nio.ByteBuffer[] buffers,
int array_offset,
int length)
Read data from the transport into the given buffers. |
void |
setFilter(TransportFilter filter)
|
long |
write(java.nio.ByteBuffer[] buffers,
int array_offset,
int length)
Write data to the transport from the given buffers. |
Method Detail |
---|
long read(java.nio.ByteBuffer[] buffers, int array_offset, int length) throws java.io.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
java.io.IOException
- on read errorlong write(java.nio.ByteBuffer[] buffers, int array_offset, int length) throws java.io.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
java.io.IOException
- on write errorvoid setFilter(TransportFilter filter) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |