Package pt.ist.phylolib.data.dataset
Class DatasetParser
java.lang.Object
pt.ist.phylolib.data.dataset.DatasetParser
Responsible for parsing
phylogenetic datasets from Strings.-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidInitializes the state of the processor by parsing the first lines of the dataset.protected abstract ProfileParses one profile from the given Strings.Parses the input data into an object.
-
Constructor Details
-
DatasetParser
public DatasetParser()
-
-
Method Details
-
parse
Description copied from interface:IReaderParses the input data into an object. -
init
Initializes the state of the processor by parsing the first lines of the dataset.By default, does not parse anything.
- Parameters:
iterator- the iterator containing the lines of the dataset
-
parse
Parses one profile from the given Strings.- Parameters:
iterator- the iterator containing the lines of the dataset- Returns:
- a new profile resultant from parsing lines of the dataset
-