FileIO, SocketIOBase, StreamIOpublic abstract class RawIOBase extends IOBase
DEFAULT_BUFFER_SIZE| Constructor | Description |
|---|---|
RawIOBase() |
| Modifier and Type | Method | Description |
|---|---|---|
RawIOBase |
fileno() |
Returns underlying file descriptor if one exists.
|
abstract java.nio.channels.Channel |
getChannel() |
Return the underlying Java nio Channel.
|
java.nio.ByteBuffer |
read(int size) |
Read and return up to size bytes, contained in a ByteBuffer.
|
java.nio.ByteBuffer |
readall() |
Read until EOF, using multiple read() calls.
|
int |
readinto(java.nio.ByteBuffer buf) |
Read up to buf.remaining() bytes into buf.
|
long |
readinto(java.nio.ByteBuffer[] bufs) |
Read bytes into each of the specified ByteBuffers.
|
int |
write(java.nio.ByteBuffer buf) |
Write the given ByteBuffer to the IO stream.
|
long |
write(java.nio.ByteBuffer[] bufs) |
Write the given ByteBuffers to the IO stream.
|
asInputStream, asOutputStream, checkClosed, checkReadable, checkWritable, close, closed, flush, isatty, readable, seek, seek, tell, truncate, writablepublic java.nio.ByteBuffer read(int size)
size - the number of bytes to readpublic java.nio.ByteBuffer readall()
public int readinto(java.nio.ByteBuffer buf)
buf - a ByteBuffer to read bytes intopublic long readinto(java.nio.ByteBuffer[] bufs)
bufs - an array of ByteBuffers to read bytes intopublic int write(java.nio.ByteBuffer buf)
buf - a ByteBuffer valuepublic long write(java.nio.ByteBuffer[] bufs)
bufs - an array of ByteBufferspublic RawIOBase fileno()
IOBasepublic abstract java.nio.channels.Channel getChannel()