|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojavax.bio.phylo.io.nexus.NexusFile
public class NexusFile
Represents Nexus files.
Constructor Summary | |
---|---|
NexusFile()
|
Method Summary | |
---|---|
void |
addObject(NexusObject object)
Appends an object to the end of the file. |
java.util.Iterator |
blockIterator()
Iterate over all blocks in the file in order. |
java.util.Iterator |
commentIterator()
Iterate over all comments in the file in order. |
boolean |
containsObject(NexusObject object)
Checks to see if we contain an object. |
void |
insertObject(NexusObject object,
int pos)
Inserts an object at the given position. |
java.util.Iterator |
objectIterator()
Iterate over all objects in the file in order. |
void |
removeObject(NexusObject object)
Removes an object from the file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NexusFile()
Method Detail |
---|
public void addObject(NexusObject object)
object
- the NexusObject to append.public void insertObject(NexusObject object, int pos)
object
- the NexusObject to insert.pos
- the position (0-indexed) to add it at.public void removeObject(NexusObject object)
object
- the NexusObject to remove.public boolean containsObject(NexusObject object)
object
- the NexusObject to check.
public java.util.Iterator objectIterator()
public java.util.Iterator commentIterator()
public java.util.Iterator blockIterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |