public abstract class AsciiTableStarTable extends AbstractStarTable
| Constructor and Description |
|---|
AsciiTableStarTable(FitsHeader hdr)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static AsciiTableStarTable |
createTable(FitsHeader hdr,
InputFactory inputFact)
Creates a table instance from a TABLE HDU.
|
int |
getColumnCount()
Returns the number of columns in this table.
|
ColumnInfo |
getColumnInfo(int icol)
Returns the object describing the data in a given column.
|
protected int[] |
getColumnLengths()
Returns the array of column lengths in bytes.
|
protected int[] |
getColumnOffsets()
Returns the array of column offsets from the start of the row.
|
long |
getRowCount()
Returns the number of rows in this table, if known.
|
protected int |
getRowLength()
Returns the length of each row in bytes.
|
protected java.lang.Object |
readCell(byte[] cellBuf,
int icol)
Reads the content of a cell of this table from a byte buffer.
|
protected java.lang.Object[] |
readRow(byte[] rowBuf)
Reads the content of a row of this table from a byte buffer.
|
static void |
streamStarTable(FitsHeader hdr,
BasicInput input,
TableSink sink)
Reads a TABLE HDU from a stream and writes the result to
a table sink.
|
checkedLongToInt, close, getCell, getColumnAuxDataInfos, getName, getParameters, getRow, getRowAccess, getRowSequence, getRowSplittable, getURL, isRandom, setName, setParameters, setURLclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParameterByName, setParameterpublic AsciiTableStarTable(FitsHeader hdr) throws java.io.IOException
hdr - ASCII TABLE extension headerjava.io.IOExceptionpublic long getRowCount()
StarTablegetRowCount in interface StarTablegetRowCount in class AbstractStarTablepublic int getColumnCount()
StarTablegetColumnCount in interface StarTablegetColumnCount in class AbstractStarTablepublic ColumnInfo getColumnInfo(int icol)
StarTablegetColumnInfo in interface StarTablegetColumnInfo in class AbstractStarTableicol - the column for which header information is requiredicolprotected int getRowLength()
protected int[] getColumnOffsets()
protected int[] getColumnLengths()
protected java.lang.Object[] readRow(byte[] rowBuf)
rowBuf - buffer containing rowLeng bytesprotected java.lang.Object readCell(byte[] cellBuf,
int icol)
cellBuf - buffer containing bytes for column contenticol - column indexpublic static AsciiTableStarTable createTable(FitsHeader hdr, InputFactory inputFact) throws java.io.IOException
hdr - FITS header for ASCII tableinputFact - input factory for Data part of HDUjava.io.IOExceptionpublic static void streamStarTable(FitsHeader hdr, BasicInput input, TableSink sink) throws java.io.IOException
hdr - FITS header object describing the TABLE extensioninput - input stream positioned at the start of the
data part of the TABLE extensionsink - destination for the tablejava.io.IOException