public class IntFileChannelReader extends Object implements ReadableIntChannel
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isOpen() |
int |
read()
Reads a single int from the channel, or throws EOFException if no data is
left.
|
int |
read(IntBuffer buffer)
Reads into the given buffer.
|
public int read()
throws IOException
ReadableIntChannelread in interface ReadableIntChannelEOFException - If no data remains in the channelIOException - If some other IO error occurs.public int read(IntBuffer buffer) throws IOException
ReadableIntChannelread in interface ReadableIntChannelbuffer - The buffer into which the data will be read.IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionCopyright © 2022 LSST. All rights reserved.