public interface IReadOnlyAccess
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this file.
|
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 IOException
IOExceptionvoid setPosition(long pos)
throws IOException
pos - the position in the fileIOExceptionint read() throws IOException
IOExceptionint read(byte[] buffer,
int off,
int count)
throws IOException
IOExceptionint readFully(byte[] buffer,
int count)
throws IOException
buffer - where to store the read datacount - how many bytes to readIOExceptionvoid close()
throws IOException
IOExceptionCopyright © 2017. All rights reserved.