public class PHYLIPFileBuilder extends Object implements PHYLIPFileListener
| Constructor and Description |
|---|
PHYLIPFileBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
endFile()
Finished reading a file.
|
Alignment |
getAlignment() |
void |
receiveSequence(String sequence)
Receive sequence data for the current sequence.
|
void |
setCurrentSequenceName(String name)
Set the name of the sequence which is about to be received.
|
void |
setSequenceCount(int count)
Set the number of sequences in the alignment.
|
void |
setSitesCount(int count)
Set the number of sites in the alignment
|
void |
startFile()
About to start a new file.
|
public PHYLIPFileBuilder()
public void startFile()
PHYLIPFileListenerstartFile in interface PHYLIPFileListenerpublic void endFile() throws ParseException
PHYLIPFileListenerendFile in interface PHYLIPFileListenerParseExceptionpublic void setSequenceCount(int count)
PHYLIPFileListenersetSequenceCount in interface PHYLIPFileListenercount - the expected number of sequencespublic void setSitesCount(int count)
PHYLIPFileListenersetSitesCount in interface PHYLIPFileListenercount - the expected number of sitespublic void setCurrentSequenceName(String name)
PHYLIPFileListenersetCurrentSequenceName in interface PHYLIPFileListenername - the label for the current sequencepublic void receiveSequence(String sequence)
PHYLIPFileListenerreceiveSequence in interface PHYLIPFileListenersequence - sequence text for the current sequencepublic Alignment getAlignment()
Copyright © 2020 BioJava. All rights reserved.