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()
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(String name)
PHYLIPFileListener
setCurrentSequenceName
in interface PHYLIPFileListener
name
- the label for the current sequencepublic void receiveSequence(String sequence)
PHYLIPFileListener
receiveSequence
in interface PHYLIPFileListener
sequence
- sequence text for the current sequencepublic Alignment getAlignment()
Copyright © 2014 BioJava. All rights reserved.