|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojavax.bio.phylo.io.nexus.NexusFileListener.Abstract
org.biojavax.bio.phylo.io.nexus.NexusFileBuilder
public class NexusFileBuilder
Builds a Nexus file by listening to events.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.biojavax.bio.phylo.io.nexus.NexusFileListener |
|---|
NexusFileListener.Abstract |
| Constructor Summary | |
|---|---|
NexusFileBuilder()
|
|
| Method Summary | |
|---|---|
void |
beginFileComment()
This method will get called when a comment is started on the file, and not any block within it. |
protected void |
blockEnded(NexusBlockParser blockParser)
This method gets called when the block parser is expected to have finished parsing a block. |
void |
endFile()
Finished reading a file. |
void |
endFileComment()
This method will get called when a comment is ended on the file, and not any block within it. |
void |
fileCommentText(String comment)
This method will get called when comment text is found on the file, and not any block within it. |
NexusFile |
getNexusFile()
Obtain the constructed file. |
void |
setDefaultBlockParsers()
Causes the default block parsers to be assigned. |
void |
startFile()
About to start a new file. |
| Methods inherited from class org.biojavax.bio.phylo.io.nexus.NexusFileListener.Abstract |
|---|
beginComment, commentText, endBlock, endComment, endTokenGroup, getBlockParser, parseToken, setBlockParser, startBlock, wantsBracketsAndBraces |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NexusFileBuilder()
| Method Detail |
|---|
public void setDefaultBlockParsers()
NexusFileListener
setDefaultBlockParsers in interface NexusFileListenersetDefaultBlockParsers in class NexusFileListener.Abstractprotected void blockEnded(NexusBlockParser blockParser)
NexusFileListener.Abstract
blockEnded in class NexusFileListener.AbstractblockParser - the parser that has finished.public void startFile()
NexusFileListener
public void endFile()
NexusFileListener
public NexusFile getNexusFile()
public void beginFileComment()
NexusFileListener.Abstract
beginFileComment in class NexusFileListener.Abstractpublic void fileCommentText(String comment)
NexusFileListener.Abstract
fileCommentText in class NexusFileListener.Abstractcomment - the comment text.public void endFileComment()
NexusFileListener.Abstract
endFileComment in class NexusFileListener.Abstract
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||