|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DNACursor
A ResultSet-like interface for iterating over the fields of a DNA strand. Generally the set of actions to cursor over consist of either all logical or all physical depending on the class.
TODO: Perhaps this could be better integrated into some Class hierarchy.
Method Summary | |
---|---|
java.lang.Object |
getAction()
Return the action at the current cursor location. |
int |
getActionCount()
Get total number of actions |
LogicalAction |
getLogicalAction()
Get a logical action at the current cursor location. |
PhysicalAction |
getPhysicalAction()
Get a physical action at the current cursor location. |
boolean |
next()
Move to next action |
boolean |
next(DNAEncoding encoding)
Move to next action and use specific encoding |
void |
reset()
Reset the cursor |
Method Detail |
---|
int getActionCount()
boolean next() throws java.io.IOException
java.io.IOException
- If an IO error occurs while moving the cursorboolean next(DNAEncoding encoding) throws java.io.IOException, java.lang.ClassNotFoundException
encoding
- The DNA encoding
java.io.IOException
- If an IO error occurs while moving the cursor
java.lang.ClassNotFoundException
- If a class is not found while deserializing DNAvoid reset() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- If this cursor implementation does not support reset()LogicalAction getLogicalAction()
PhysicalAction getPhysicalAction()
java.lang.Object getAction()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |