|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.starlink.table.WrapperRowSequence
public class 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. |
java.lang.Object |
getCell(int icol)
Returns the contents of a cell in the current row. |
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. |
java.lang.String |
toString()
Returns an indication of the wrapper structure of this sequence. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected RowSequence baseSeq
| Constructor Detail |
|---|
public WrapperRowSequence(RowSequence baseSeq)
baseSeq - the base row sequence| Method Detail |
|---|
public boolean next()
throws java.io.IOException
RowSequenceRowSequence.getCell(int) or RowSequence.getRow() methods.
next in interface RowSequencejava.io.IOException - if there is some error
public java.lang.Object getCell(int icol)
throws java.io.IOException
RowSequence
getCell in interface RowSequencejava.io.IOException - if there is an error reading the data
public java.lang.Object[] getRow()
throws java.io.IOException
RowSequence
getRow in interface RowSequencejava.io.IOException - if there is an error reading the data
public void close()
throws java.io.IOException
RowSequenceclose is undefined.
close in interface RowSequencejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||