|
|||||||||
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(java.io.InputStream in,
GbinTableProfile profile)
Constructor. |
Method Summary | |
---|---|
void |
close()
Indicates that this sequence will not be required any more. |
java.lang.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. |
java.lang.Class |
getItemClass()
Returns the class of the elements contained in the GBIN file. |
java.lang.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(java.io.InputStream in, GbinTableProfile profile) throws java.io.IOException
in
- input stream containing GBIN fileprofile
- configures details of table construction
java.io.IOException
Method Detail |
---|
public ColumnInfo[] getColumnInfos()
public java.lang.Class getItemClass()
public boolean next() throws java.io.IOException
RowSequence
RowSequence.getCell(int)
or RowSequence.getRow()
methods.
next
in interface RowSequence
java.io.IOException
- if there is some errorpublic java.lang.Object getCell(int icol) throws java.io.IOException
RowSequence
getCell
in interface RowSequence
java.io.IOException
- if there is an error reading the datapublic java.lang.Object[] getRow() throws java.io.IOException
RowSequence
getRow
in interface RowSequence
java.io.IOException
- if there is an error reading the datapublic void close() throws java.io.IOException
RowSequence
close
is undefined.
close
in interface RowSequence
java.io.IOException
|
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 |