public class FitsIntReader extends Object implements ReadableIntChannel
| Constructor and Description |
|---|
FitsIntReader(File... files) |
| 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 FitsIntReader(File... files) throws IOException, nom.tam.fits.TruncatedFileException
IOExceptionnom.tam.fits.TruncatedFileExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionpublic 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.IOExceptionCopyright © 2020 LSST. All rights reserved.