Class LineMapParser<K,T>
java.lang.Object
ubic.gemma.core.loader.util.parser.BasicLineMapParser<K,T>
ubic.gemma.core.loader.util.parser.LineMapParser<K,T>
- All Implemented Interfaces:
LineParser<T>
,Parser<T>
- Direct Known Subclasses:
BiomartEnsembleNcbiParser
The difference between this class and BasicLineMapParser is more flexibility in how keys are provided. The
parseOneLine method that is implemented must handle adding the data to the Map.
- Author:
- pavlidis
-
Field Summary
Fields inherited from class ubic.gemma.core.loader.util.parser.BasicLineMapParser
COMMENT_MARK, log
Fields inherited from interface ubic.gemma.core.loader.util.parser.LineParser
MIN_PARSED_LINES_FOR_UPDATE, PARSE_ALERT_TIME_FREQUENCY_MS
Fields inherited from interface ubic.gemma.core.loader.util.parser.Parser
PARSE_ALERT_FREQUENCY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal K
void
parse
(InputStream is) Parse aInputStream
.protected final void
Methods inherited from class ubic.gemma.core.loader.util.parser.BasicLineMapParser
containsKey, get, getKeySet, getResults, parse, parse, parseOneLine
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ubic.gemma.core.loader.util.parser.Parser
getUniqueResult
-
Constructor Details
-
LineMapParser
public LineMapParser()
-
-
Method Details
-
parse
Description copied from interface:Parser
Parse aInputStream
.- Specified by:
parse
in interfaceParser<K>
- Overrides:
parse
in classBasicLineMapParser<K,
T> - Parameters:
is
- input stream- Throws:
IOException
- if there is a problem while manipulating the file
-
getKey
- Specified by:
getKey
in classBasicLineMapParser<K,
T>
-
put
- Specified by:
put
in classBasicLineMapParser<K,
T>
-