|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.iastate.biocyc.io.AttributeFileReaderEx
public class AttributeFileReaderEx
same as AttributeFileReader except implementing the data structure by Map of MultiMap
| Field Summary | |
|---|---|
(package private) static org.apache.log4j.Logger |
logger
log4j facility |
(package private) int |
PARSE
file line scanner status |
(package private) int |
SEARCH
file line scanner status for one unique-id record |
| Constructor Summary | |
|---|---|
AttributeFileReaderEx()
|
|
| Method Summary | |
|---|---|
void |
print(java.util.Map file)
the map structure should contain the unique as the key, then another map as the value. |
java.util.Map |
read(java.io.InputStream inputStream)
read data from the input stream |
java.util.Map |
read(java.lang.String filename)
read in the file and turn into map data structure like ATP=> {UID=>[ATP], SYNONYM=>[ATPase, ADP]} |
static java.lang.String |
trim(java.lang.String original,
char header,
char tail)
cut the header and the tail of the string, do not consider if it is already a trimmed one |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static org.apache.log4j.Logger logger
final int SEARCH
final int PARSE
| Constructor Detail |
|---|
public AttributeFileReaderEx()
| Method Detail |
|---|
public java.util.Map read(java.lang.String filename)
IAracycFileReader reader = new AttributeFileReaderEx(); Map map = reader.read(filename);
public java.util.Map read(java.io.InputStream inputStream)
inputStream - the input stream
public static java.lang.String trim(java.lang.String original,
char header,
char tail)
original - the original stringheader - the header char to be removedtail - the tail char to be removed
public void print(java.util.Map file)
file - the data structure
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||