| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public RawIOBase | fileno()
Overrides org. Returns underlying file descriptor if one exists. |
| public abstract Channel | |
| public ByteBuffer | Returns: a ByteBuffer containing the bytes readthe number of bytes to read size)Read and return up to size bytes, contained in a ByteBuffer. |
| public ByteBuffer | Returns: a ByteBuffer containing the bytes readRead until EOF, using multiple read() calls. |
| public int | Returns: the amount of data read as an inta ByteBuffer to read bytes into buf)Read up to buf.remaining() bytes into buf. |
| public long | Returns: the amount of data read as a longan array of ByteBuffers to read bytes into bufs)Read bytes into each of the specified ByteBuffers. |
| public int | Returns: the number of bytes written as an inta ByteBuffer value buf)Write the given ByteBuffer to the IO stream. |
| public long | Returns: the number of bytes written as a longan array of ByteBuffers bufs)Write the given ByteBuffers to the IO stream. |
| RawIOBase | back to summary |
|---|---|
| public RawIOBase() | |
| fileno | back to summary |
|---|---|
| public RawIOBase fileno() Overrides org. Doc from org. Returns underlying file descriptor if one exists. Raises IOError if the IO object does not use a file descriptor. | |
| getChannel | back to summary |
|---|---|
| public abstract Channel getChannel() Return the underlying Java nio Channel.
| |
| read | back to summary |
|---|---|
| public ByteBuffer read(int size) Read and return up to size bytes, contained in a ByteBuffer. ByteBuffers returned from read are already flip()'d. Returns an empty ByteBuffer on EOF
| |
| readall | back to summary |
|---|---|
| public ByteBuffer readall() Read until EOF, using multiple read() calls.
| |
| readinto | back to summary |
|---|---|
| public int readinto(ByteBuffer buf) Read up to buf.remaining() bytes into buf. Returns number of bytes read (0 for EOF).
| |
| readinto | back to summary |
|---|---|
| public long readinto(ByteBuffer[] bufs) Read bytes into each of the specified ByteBuffers. Returns number of bytes read (0 for EOF).
| |
| write | back to summary |
|---|---|
| public int write(ByteBuffer buf) Write the given ByteBuffer to the IO stream. Returns the number of bytes written, which may be less than buf.remaining().
| |
| write | back to summary |
|---|---|
| public long write(ByteBuffer[] bufs) Write the given ByteBuffers to the IO stream. Returns the number of bytes written, which may be less than the combined value of all the buf.remaining()'s.
| |