Interface Parser<T>
- All Known Subinterfaces:
LineParser<T>
- All Known Implementing Classes:
AffyProbeReader
,ArrayDesignParser
,BasicLineMapParser
,BasicLineParser
,BiomartEnsembleNcbiParser
,BlatResultParser
,CompositeSequenceParser
,FastaParser
,GeoFamilyParser
,IlluminaProbeReader
,LineMapParser
,NcbiGene2AccessionParser
,NCBIGene2GOAssociationParser
,NcbiGeneEnsemblFileParser
,NcbiGeneHistoryParser
,NcbiGeneInfoParser
,ProbeSequenceParser
,RecordParser
,SwissProtParser
,TaxonParser
public interface Parser<T>
Interface for classes that allow parsing of files and streams.
- Author:
- pavlidis
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault T
Obtain a unique result from the parser.void
Parse aFile
void
parse
(InputStream is) Parse aInputStream
.void
Parse a file identified by its path.
-
Field Details
-
PARSE_ALERT_FREQUENCY
static final int PARSE_ALERT_FREQUENCY- See Also:
-
-
Method Details
-
getResults
Collection<T> getResults()- Returns:
- the results of the parse.
-
getUniqueResult
Obtain a unique result from the parser.- Throws:
IllegalStateException
- if there is more than one parse result
-
parse
Parse aFile
- Parameters:
f
- file- Throws:
IOException
- if there is a problem while manipulating the file
-
parse
Parse aInputStream
.- Parameters:
is
- input stream- Throws:
IOException
- if there is a problem while manipulating the file
-
parse
Parse a file identified by its path.- Parameters:
filename
- Absolute path to the file- Throws:
IOException
- if there is a problem while manipulating the file
-