public abstract class AbstractMatrixReader<M extends Matrix2D<String,String,V>,V> extends Object
Matrix2Dfrom a file.| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
AbstractMatrixReader() |
| Modifier and Type | Method and Description |
|---|---|
abstract M |
read(InputStream stream) |
abstract M |
read(String filename) |
abstract M |
read(String filename,
int maxRows) |
protected List<String> |
readHeader(BufferedReader dis,
int skipColumns) |
public abstract M read(InputStream stream) throws IOException
IOExceptionpublic abstract M read(String filename) throws IOException
IOExceptionpublic abstract M read(String filename, int maxRows) throws IOException
IOExceptionprotected List<String> readHeader(BufferedReader dis, int skipColumns) throws IOException
dis - skipColumns - how many data columns shoul be ignoredIOExceptionCopyright © 2003–2023 UBC Michael Smith Laboratories. All rights reserved.