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 Modifier and Type Field Description static int
PARSE_ALERT_FREQUENCY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<T>
getResults()
void
parse(File f)
Parse aFile
void
parse(InputStream is)
Parse aInputStream
.void
parse(String filename)
Parse a file identified by its path.
-
-
-
Field Detail
-
PARSE_ALERT_FREQUENCY
static final int PARSE_ALERT_FREQUENCY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getResults
Collection<T> getResults()
- Returns:
- the results of the parse.
-
parse
void parse(File f) throws IOException
Parse aFile
- Parameters:
f
- file- Throws:
IOException
- if there is a problem while manipulating the file
-
parse
void parse(InputStream is) throws IOException
Parse aInputStream
.- Parameters:
is
- input stream- Throws:
IOException
- if there is a problem while manipulating the file
-
parse
void parse(String filename) throws IOException
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
-
-