Package ubic.basecode.io.reader
Class MapReader
java.lang.Object
ubic.basecode.io.reader.MapReader
Reads a tab-delimited file with keys in first column, values in second.
- Author:
- Paul Pavlidis
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MapReader
public MapReader()
-
-
Method Details
-
read
- Parameters:
stream
- InputStream- Returns:
- Throws:
IOException
-
read
- Parameters:
stream
- InputStreamhasHeader
- boolean if a one-line header is present.- Returns:
- Throws:
IOException
-
read
- Parameters:
filename
- String- Returns:
- Map
- Throws:
IOException
-
read
- Parameters:
filename
- name of the tab-delimited filehasHeader
- boolean if a one-line header is present.- Returns:
- Map from the file.
- Throws:
IOException
-