java.io.Closeable, java.lang.AutoCloseablepublic 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 | Description |
|---|---|
ColFitsStarTable(uk.ac.starlink.util.DataSource datsrc,
nom.tam.fits.Header hdr,
long dataPos,
boolean force,
WideFits wide) |
Constructor.
|
| Modifier and Type | Method | 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 class uk.ac.starlink.table.AbstractStarTablepublic long getRowCount()
getRowCount in class uk.ac.starlink.table.AbstractStarTablepublic boolean isRandom()
isRandom in class uk.ac.starlink.table.AbstractStarTablepublic uk.ac.starlink.table.ColumnInfo getColumnInfo(int icol)
getColumnInfo in class uk.ac.starlink.table.AbstractStarTablepublic java.lang.Object getCell(long irow,
int icol)
throws java.io.IOException
getCell in class uk.ac.starlink.table.AbstractStarTablejava.io.IOExceptionpublic java.lang.Object[] getRow(long irow)
throws java.io.IOException
getRow in class uk.ac.starlink.table.AbstractStarTablejava.io.IOExceptionpublic uk.ac.starlink.table.RowSequence getRowSequence()
throws java.io.IOException
getRowSequence in class uk.ac.starlink.table.AbstractStarTablejava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOExceptionCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.