public class PHYLIPFileBuilder extends java.lang.Object implements PHYLIPFileListener
Constructor and Description |
---|
PHYLIPFileBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
endFile()
Finished reading a file.
|
Alignment |
getAlignment() |
void |
receiveSequence(java.lang.String sequence)
Receive sequence data for the current sequence.
|
void |
setCurrentSequenceName(java.lang.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 void startFile()
PHYLIPFileListener
startFile
in interface PHYLIPFileListener
public void endFile() throws ParseException
PHYLIPFileListener
endFile
in interface PHYLIPFileListener
ParseException
public void setSequenceCount(int count)
PHYLIPFileListener
setSequenceCount
in interface PHYLIPFileListener
count
- the expected number of sequencespublic void setSitesCount(int count)
PHYLIPFileListener
setSitesCount
in interface PHYLIPFileListener
count
- the expected number of sitespublic void setCurrentSequenceName(java.lang.String name)
PHYLIPFileListener
setCurrentSequenceName
in interface PHYLIPFileListener
name
- the label for the current sequencepublic void receiveSequence(java.lang.String sequence)
PHYLIPFileListener
receiveSequence
in interface PHYLIPFileListener
sequence
- sequence text for the current sequencepublic Alignment getAlignment()