Interface SeekableReadOnlyByteChannel
- All Known Implementing Classes:
RawDataIo, SeekableReadOnlyFile, SeekableReadOnlyInputStream
public interface SeekableReadOnlyByteChannel
DOCUMENT ME
- Version:
- $LastChangedRevision$
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close this channel.longintread()Read a single byte of data.intread(byte[] buffer, int off, int count) Read up tocountbytes to the specified buffer.intreadFully(byte[] buffer, int count) Read exactlycountbytes to the specified buffer.voidsetPosition(long pos)
-
Method Details
-
getPosition
- Returns:
- the current position in the channel
- Throws:
IOException- .
-
setPosition
- Parameters:
pos- the position in the channel- Throws:
IOException- .
-
read
Read a single byte of data.- Returns:
- read read
- Throws:
IOException- .
-
read
Read up tocountbytes to the specified buffer.- Parameters:
buffer- .off- .count- .- Returns:
- read read
- Throws:
IOException- .
-
readFully
Read exactlycountbytes to the specified buffer.- Parameters:
buffer- where to store the read datacount- how many bytes to read- Returns:
- bytes read || -1 if IO problem
- Throws:
IOException- .
-
close
-