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
public abstract class LineMapParser<K,T> extends BasicLineMapParser<K,T>
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 Constructor Description LineMapParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description K
getKey(T o)
void
parse(InputStream is)
Parse aInputStream
.protected void
put(K key, T value)
-
Methods inherited from class ubic.gemma.core.loader.util.parser.BasicLineMapParser
containsKey, get, getKeySet, getResults, parse, parse, parseOneLine
-
-
-
-
Method Detail
-
parse
public void parse(InputStream is) throws IOException
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
-
-