public class ColFitsStarTable
extends uk.ac.starlink.table.AbstractStarTable
implements java.io.Closeable
Some instances of this class hang on to file descriptors.
If you are in danger of running out of that resource before
insstances are garbage collected, you can call the close()
method to release them. Attempting to read data following
such a call may result in an exception.
Constructor and Description |
---|
ColFitsStarTable(uk.ac.starlink.util.DataSource datsrc,
nom.tam.fits.Header hdr,
long dataPos,
boolean force)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.lang.Object |
getCell(long irow,
int icol) |
int |
getColumnCount() |
uk.ac.starlink.table.ColumnInfo |
getColumnInfo(int icol) |
java.lang.Object[] |
getRow(long irow) |
long |
getRowCount() |
uk.ac.starlink.table.RowSequence |
getRowSequence() |
boolean |
isRandom() |
public ColFitsStarTable(uk.ac.starlink.util.DataSource datsrc, nom.tam.fits.Header hdr, long dataPos, boolean force) throws java.io.IOException
datsrc
- data source containing the FITS datahdr
- header of the HDU containing the tabledataPos
- offset into file
of the start of the
data part of the HDUforce
- true to make a table if we possibly can,
false to reject if it doesn't look very much like onejava.io.IOException
public int getColumnCount()
getColumnCount
in interface uk.ac.starlink.table.StarTable
getColumnCount
in class uk.ac.starlink.table.AbstractStarTable
public long getRowCount()
getRowCount
in interface uk.ac.starlink.table.StarTable
getRowCount
in class uk.ac.starlink.table.AbstractStarTable
public boolean isRandom()
isRandom
in interface uk.ac.starlink.table.StarTable
isRandom
in class uk.ac.starlink.table.AbstractStarTable
public uk.ac.starlink.table.ColumnInfo getColumnInfo(int icol)
getColumnInfo
in interface uk.ac.starlink.table.StarTable
getColumnInfo
in class uk.ac.starlink.table.AbstractStarTable
public java.lang.Object getCell(long irow, int icol) throws java.io.IOException
getCell
in interface uk.ac.starlink.table.StarTable
getCell
in class uk.ac.starlink.table.AbstractStarTable
java.io.IOException
public java.lang.Object[] getRow(long irow) throws java.io.IOException
getRow
in interface uk.ac.starlink.table.StarTable
getRow
in class uk.ac.starlink.table.AbstractStarTable
java.io.IOException
public uk.ac.starlink.table.RowSequence getRowSequence() throws java.io.IOException
getRowSequence
in interface uk.ac.starlink.table.StarTable
getRowSequence
in class uk.ac.starlink.table.AbstractStarTable
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.