E - 1D matrix element typepublic abstract class AbstractMatrix1DReader<E> extends Object implements Matrix1DReader<E>
| Constructor and Description |
|---|
AbstractMatrix1DReader() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Matrix1D<E> |
createMatrix1D(long size,
int cardinality)
Create and return a new instance of an implementation of Matrix1D.
|
protected abstract E |
parse(String value)
Parse the specified value to an instance of type
E. |
Matrix1D<E> |
read(File file)
Read a 1D matrix from the specified file.
|
Matrix1D<E> |
read(URL url)
Read a 1D matrix from the specified URL.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadprotected abstract E parse(String value) throws IOException
E.value - value to parseEIOException - if an IO error occursprotected abstract Matrix1D<E> createMatrix1D(long size, int cardinality)
size - sizecardinality - approximate cardinalitypublic final Matrix1D<E> read(File file) throws IOException
read in interface Matrix1DReader<E>file - file to read from, must not be nullIOException - if an IO error occurspublic final Matrix1D<E> read(URL url) throws IOException
read in interface Matrix1DReader<E>url - URL to read from, must not be nullIOException - if an IO error occursCopyright (c) 2008-2013 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).