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,
WideFits wide)
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,
WideFits wide)
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 onewide - convention for representing extended columns;
use null to avoid use of extended columnsjava.io.IOExceptionpublic int getColumnCount()
getColumnCount in interface uk.ac.starlink.table.StarTablegetColumnCount in class uk.ac.starlink.table.AbstractStarTablepublic long getRowCount()
getRowCount in interface uk.ac.starlink.table.StarTablegetRowCount in class uk.ac.starlink.table.AbstractStarTablepublic boolean isRandom()
isRandom in interface uk.ac.starlink.table.StarTableisRandom in class uk.ac.starlink.table.AbstractStarTablepublic uk.ac.starlink.table.ColumnInfo getColumnInfo(int icol)
getColumnInfo in interface uk.ac.starlink.table.StarTablegetColumnInfo in class uk.ac.starlink.table.AbstractStarTablepublic java.lang.Object getCell(long irow,
int icol)
throws java.io.IOException
getCell in interface uk.ac.starlink.table.StarTablegetCell in class uk.ac.starlink.table.AbstractStarTablejava.io.IOExceptionpublic java.lang.Object[] getRow(long irow)
throws java.io.IOException
getRow in interface uk.ac.starlink.table.StarTablegetRow in class uk.ac.starlink.table.AbstractStarTablejava.io.IOExceptionpublic uk.ac.starlink.table.RowSequence getRowSequence()
throws java.io.IOException
getRowSequence in interface uk.ac.starlink.table.StarTablegetRowSequence in class uk.ac.starlink.table.AbstractStarTablejava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.