public interface SeekableReadOnlyByteChannel
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this channel.
|
long |
getPosition() |
int |
read()
Read a single byte of data.
|
int |
read(byte[] buffer,
int off,
int count)
Read up to
count bytes to the specified buffer. |
int |
readFully(byte[] buffer,
int count)
Read exactly
count bytes to the specified buffer. |
void |
setPosition(long pos) |
long getPosition()
throws java.io.IOException
java.io.IOException - .void setPosition(long pos)
throws java.io.IOException
pos - the position in the channeljava.io.IOException - .int read() throws java.io.IOException
java.io.IOException - .int read(byte[] buffer,
int off,
int count)
throws java.io.IOException
count bytes to the specified buffer.buffer - .off - .count - .java.io.IOException - .int readFully(byte[] buffer,
int count)
throws java.io.IOException
count bytes to the specified buffer.buffer - where to store the read datacount - how many bytes to readjava.io.IOException - .void close()
throws java.io.IOException
java.io.IOException - .