public abstract class AbstractMatrixReader<M extends Matrix2D<String,String,V>,V> extends Object
Matrix2D
from 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
IOException
public abstract M read(String filename) throws IOException
IOException
public abstract M read(String filename, int maxRows) throws IOException
IOException
protected List<String> readHeader(BufferedReader dis, int skipColumns) throws IOException
dis
- skipColumns
- how many data columns shoul be ignoredIOException
Copyright © 2003–2023 UBC Michael Smith Laboratories. All rights reserved.