Package ubic.basecode.io.reader
Class StringMatrixReader
- java.lang.Object
-
- ubic.basecode.io.reader.AbstractMatrixReader<StringMatrix<String,String>,String>
-
- ubic.basecode.io.reader.StringMatrixReader
-
public class StringMatrixReader extends AbstractMatrixReader<StringMatrix<String,String>,String>
Reader forbasecode.dataStructure.matrix.StringMatrix
- Author:
- Paul Pavlidis
-
-
Field Summary
-
Fields inherited from class ubic.basecode.io.reader.AbstractMatrixReader
log
-
-
Constructor Summary
Constructors Constructor Description StringMatrixReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringMatrix<String,String>
read(InputStream stream)
StringMatrix<String,String>
read(InputStream stream, int maxRows, int numColumnsToSkip)
StringMatrix<String,String>
read(String filename)
StringMatrix<String,String>
read(String filename, int maxRows)
StringMatrix<String,String>
read(String filename, int maxRows, int numColumnsToSkip)
-
Methods inherited from class ubic.basecode.io.reader.AbstractMatrixReader
readHeader
-
-
-
-
Method Detail
-
read
public StringMatrix<String,String> read(InputStream stream) throws IOException
- Specified by:
read
in classAbstractMatrixReader<StringMatrix<String,String>,String>
- Throws:
IOException
-
read
public StringMatrix<String,String> read(InputStream stream, int maxRows, int numColumnsToSkip) throws IOException
- Parameters:
stream
-maxRows
-numColumnsToSkip
- How many data columns to skip. 0 or -1 means none; 1 means one column will be skipped, etc.- Returns:
- Throws:
IOException
-
read
public StringMatrix<String,String> read(String filename) throws IOException
- Specified by:
read
in classAbstractMatrixReader<StringMatrix<String,String>,String>
- Throws:
IOException
-
read
public StringMatrix<String,String> read(String filename, int maxRows) throws IOException
- Specified by:
read
in classAbstractMatrixReader<StringMatrix<String,String>,String>
- Throws:
IOException
-
read
public StringMatrix<String,String> read(String filename, int maxRows, int numColumnsToSkip) throws IOException
- Parameters:
filename
-maxRows
-numColumnsToSkip
-- Returns:
- Throws:
IOException
-
-