Package org.forester.io.parsers.util
Class ParserUtils
java.lang.Object
org.forester.io.parsers.util.ParserUtils
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Patternstatic final Patternstatic final Patternstatic final Patternstatic final Patternstatic final Patternstatic final Patternstatic final Patternstatic final Patternstatic final Patternstatic final Patternstatic final Pattern - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic final PhylogenyParsercreateParserDependingFileContents(File file, boolean phyloxml_validate_against_xsd) static final PhylogenyParsercreateParserDependingOnFileType(File file, boolean phyloxml_validate_against_xsd) static final PhylogenyParsercreateParserDependingOnUrlContents(URL url, boolean phyloxml_validate_against_xsd) static BufferedReadercreateReader(Object source) static final Stringstatic final StringextractTaxonomyCodeFromNodeName(String name, NHXParser.TAXONOMY_EXTRACTION taxonomy_extraction) static final StringextractTaxonomyDataFromNodeName(PhylogenyNode node, NHXParser.TAXONOMY_EXTRACTION taxonomy_extraction) static final StringextractUniprotTaxonomyIdFromNodeName(String name, NHXParser.TAXONOMY_EXTRACTION taxonomy_extraction) static final Phylogeny[]readPhylogenies(File file) static final Phylogeny[]readPhylogenies(String file_name)  
- 
Field Details
- 
TAX_CODE
- See Also:
 
 - 
TAX_CODE_LO
- See Also:
 
 - 
TAXOMONY_CODE_PATTERN_A
 - 
TAXOMONY_CODE_PATTERN_A_LO
 - 
TAXOMONY_CODE_PATTERN_BRACKETED
 - 
TAXOMONY_CODE_PATTERN_PFR
 - 
TAXOMONY_SN_PATTERN_GENUS
 - 
TAXOMONY_SN_PATTERN_SN
 - 
TAXOMONY_SN_PATTERN_SNS
 - 
TAXOMONY_SN_PATTERN_SNS2
 - 
TAXOMONY_SN_PATTERN_SP
 - 
TAXOMONY_SN_PATTERN_STRAIN_1
 - 
TAXOMONY_SN_PATTERN_STRAIN_2
 - 
TAXOMONY_SN_PATTERN_STRAIN_SUBSTRAIN
 
 - 
 - 
Constructor Details
- 
ParserUtils
public ParserUtils() 
 - 
 - 
Method Details
- 
createParserDependingFileContents
public static final PhylogenyParser createParserDependingFileContents(File file, boolean phyloxml_validate_against_xsd) throws FileNotFoundException, IOException - Throws:
 FileNotFoundExceptionIOException
 - 
createParserDependingOnFileType
public static final PhylogenyParser createParserDependingOnFileType(File file, boolean phyloxml_validate_against_xsd) throws FileNotFoundException, IOException - Throws:
 FileNotFoundExceptionIOException
 - 
createParserDependingOnUrlContents
public static final PhylogenyParser createParserDependingOnUrlContents(URL url, boolean phyloxml_validate_against_xsd) throws FileNotFoundException, IOException - Throws:
 FileNotFoundExceptionIOException
 - 
createReader
- Throws:
 IOExceptionFileNotFoundException
 - 
extractScientificNameFromNodeName
 - 
extractTaxonomyCodeFromNodeName
public static final String extractTaxonomyCodeFromNodeName(String name, NHXParser.TAXONOMY_EXTRACTION taxonomy_extraction)  - 
extractTaxonomyDataFromNodeName
public static final String extractTaxonomyDataFromNodeName(PhylogenyNode node, NHXParser.TAXONOMY_EXTRACTION taxonomy_extraction) throws PhyloXmlDataFormatException - Throws:
 PhyloXmlDataFormatException
 - 
extractUniprotTaxonomyIdFromNodeName
public static final String extractUniprotTaxonomyIdFromNodeName(String name, NHXParser.TAXONOMY_EXTRACTION taxonomy_extraction)  - 
readPhylogenies
public static final Phylogeny[] readPhylogenies(File file) throws FileNotFoundException, IOException - Throws:
 FileNotFoundExceptionIOException
 - 
readPhylogenies
public static final Phylogeny[] readPhylogenies(String file_name) throws FileNotFoundException, IOException - Throws:
 FileNotFoundExceptionIOException
 
 -