Package org.biojavax.bio.phylo.io.nexus
Class NexusComment
java.lang.Object
org.biojavax.bio.phylo.io.nexus.NexusComment
- All Implemented Interfaces:
NexusObject
Represents a Nexus comment, possibly nested.
- Since:
- 1.6
- Author:
- Richard Holland, Tobias Thierer, Jim Balhoff
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCommentText
(String text) void
This iterator iterates over all parts of the comment.boolean
void
void
writeObject
(Writer writer) Writes this object to the given writer.
-
Constructor Details
-
NexusComment
public NexusComment()
-
-
Method Details
-
openSubComment
-
hasOpenSubComment
-
closeSubComment
-
addCommentText
-
commentIterator
This iterator iterates over all parts of the comment. Each item returned is either a String or a NexusComment.- Returns:
- an iterator over the comment components.
-
writeObject
Description copied from interface:NexusObject
Writes this object to the given writer.- Specified by:
writeObject
in interfaceNexusObject
- Parameters:
writer
- the writer to write to.- Throws:
IOException
- if it could not be written.
-