Constructor and Description |
---|
NexusFile() |
Modifier and Type | Method and Description |
---|---|
void |
addObject(NexusObject object)
Appends an object to the end of the file.
|
Iterator |
blockIterator()
Iterate over all blocks in the file in order.
|
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.
|
Iterator |
objectIterator()
Iterate over all objects in the file in order.
|
void |
removeObject(NexusObject object)
Removes an object from the file.
|
public NexusFile()
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 Iterator objectIterator()
public Iterator commentIterator()
public Iterator blockIterator()
Copyright © 2014 BioJava. All rights reserved.