java.io.Closeable
, java.lang.AutoCloseable
, uk.ac.starlink.table.StarTable
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 | 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.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.lang.AutoCloseable
close
in interface java.io.Closeable
java.io.IOException
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.