|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.starlink.table.WrapperRowSequence
RowSequence which wraps another RowSequence. This class acts as a wrapper around an existing 'base' RowSequence object; all its methods are implemented by forwarding them to the corresponding methods of that base sequence.
This class is provided so that it can be extended by subclasses which modify the view of the base sequence in useful ways.
WrapperStarTable
Field Summary | |
protected RowSequence |
baseSeq
|
Constructor Summary | |
WrapperRowSequence(RowSequence baseSeq)
Constructs a new RowSequence based on a given one. |
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. |
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 |
Field Detail |
protected RowSequence baseSeq
Constructor Detail |
public WrapperRowSequence(RowSequence baseSeq)
baseSeq
- the base row sequenceMethod Detail |
public boolean next() throws IOException
RowSequence
RowSequence.getCell(int)
or RowSequence.getRow()
methods.
next
in interface RowSequence
IOException
- if there is some errorpublic Object getCell(int icol) throws IOException
RowSequence
getCell
in interface RowSequence
IOException
- if there is an error reading the datapublic Object[] getRow() throws IOException
RowSequence
getRow
in interface RowSequence
IOException
- if there is an error reading the datapublic void close() throws IOException
RowSequence
close
is undefined.
close
in interface RowSequence
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 |