|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.starlink.gbin.GbinTableReader
public class GbinTableReader
Does most of the work for turning a GbinObjectReader into a table.
| Constructor Summary | |
|---|---|
GbinTableReader(InputStream in,
GbinTableProfile profile)
Constructor. |
|
| Method Summary | |
|---|---|
void |
close()
Indicates that this sequence will not be required any more. |
Object |
getCell(int icol)
Returns the contents of a cell in the current row. |
ColumnInfo[] |
getColumnInfos()
Returns the column metadata representing the columns this object will read. |
String |
getGaiaTableName()
Returns the name of the table as known to the Gaia data model on the classpath, if any. |
Class |
getItemClass()
Returns the class of the elements contained in the GBIN file. |
Object[] |
getRow()
Returns the contents of the current table row, as an array with the same number of elements as there are columns in this table. |
boolean |
next()
Attempts to advances the current row to the next one. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GbinTableReader(InputStream in,
GbinTableProfile profile)
throws IOException
in - input stream containing GBIN fileprofile - configures details of table construction
IOException| Method Detail |
|---|
public ColumnInfo[] getColumnInfos()
public Class getItemClass()
public String getGaiaTableName()
public boolean next()
throws IOException
RowSequenceRowSequence.getCell(int) or RowSequence.getRow() methods.
next in interface RowSequenceIOException - if there is some error
public Object getCell(int icol)
throws IOException
RowSequence
getCell in interface RowSequenceIOException - if there is an error reading the data
public Object[] getRow()
throws IOException
RowSequence
getRow in interface RowSequenceIOException - if there is an error reading the data
public void close()
throws IOException
RowSequenceclose is undefined.
close in interface RowSequenceIOException
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||