Class BasicLineParser<T>
java.lang.Object
ubic.gemma.core.loader.util.parser.BasicLineParser<T>
- All Implemented Interfaces:
LineParser<T>,Parser<T>
- Direct Known Subclasses:
ArrayDesignParser,BlatResultParser,CompositeSequenceParser,NcbiGene2AccessionParser,NCBIGene2GOAssociationParser
A simple LineParser implementation that doesn't do anything. Subclass this and implement the "parseOneLine" method.
- Author:
- pavlidis
-
Field Summary
FieldsFields inherited from interface ubic.gemma.core.loader.util.parser.LineParser
MIN_PARSED_LINES_FOR_UPDATE, PARSE_ALERT_TIME_FREQUENCY_MSFields inherited from interface ubic.gemma.core.loader.util.parser.Parser
PARSE_ALERT_FREQUENCY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidabstract Collection<T> voidParse aFilevoidparse(InputStream is) Parse aInputStream.voidParse a file identified by its path.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ubic.gemma.core.loader.util.parser.LineParser
parseOneLineMethods inherited from interface ubic.gemma.core.loader.util.parser.Parser
getUniqueResult
-
Field Details
-
log
protected final org.apache.commons.logging.Log log
-
-
Constructor Details
-
BasicLineParser
public BasicLineParser()
-
-
Method Details
-
getResults
- Specified by:
getResultsin interfaceParser<T>- Returns:
- the results of the parse.
-
parse
Description copied from interface:ParserParse aFile- Specified by:
parsein interfaceParser<T>- Parameters:
file- file- Throws:
IOException- if there is a problem while manipulating the file
-
parse
Description copied from interface:ParserParse aInputStream.- Specified by:
parsein interfaceParser<T>- Parameters:
is- input stream- Throws:
IOException- if there is a problem while manipulating the file
-
parse
Description copied from interface:ParserParse a file identified by its path.- Specified by:
parsein interfaceParser<T>- Parameters:
filename- Absolute path to the file- Throws:
IOException- if there is a problem while manipulating the file
-
addResult
-