edu.iastate.metnet.aracyc
Class TabularFileReaderEx
java.lang.Object
edu.iastate.metnet.aracyc.AbstractAracycFileReader
edu.iastate.metnet.aracyc.TabularFileReaderEx
- All Implemented Interfaces:
- IAracycFileReader
public class TabularFileReaderEx
- extends AbstractAracycFileReader
same as TabularFileReader except implementing the data structure by Map of MultiMap
- Author:
- Jie Li
|
Field Summary |
(package private) static org.apache.log4j.Logger |
logger
log4j facility |
|
Method Summary |
protected java.util.Map |
parseFile(java.util.LinkedList lines)
parse the file lines and get the map of multimap |
java.util.Map |
read(java.io.InputStream inputStream)
|
java.util.Map |
read(java.lang.String filename)
read files and get the map of multimap |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
static org.apache.log4j.Logger logger
- log4j facility
TabularFileReaderEx
public TabularFileReaderEx()
read
public java.util.Map read(java.lang.String filename)
- read files and get the map of multimap
IAracycFileReader reader = new TabularFileReader();
Map map = reader.read(filename);
- Specified by:
read in interface IAracycFileReader- Overrides:
read in class AbstractAracycFileReader
- Parameters:
filename - filename of the dump file,
- Returns:
- the data structure
read
public java.util.Map read(java.io.InputStream inputStream)
- Specified by:
read in interface IAracycFileReader- Overrides:
read in class AbstractAracycFileReader
parseFile
protected java.util.Map parseFile(java.util.LinkedList lines)
- parse the file lines and get the map of multimap
- Parameters:
lines - the file lines
- Returns:
- the data structure