E
- 3D matrix element typepublic abstract class AbstractMatrix3DReader<E> extends Object implements Matrix3DReader<E>
Constructor and Description |
---|
AbstractMatrix3DReader() |
Modifier and Type | Method and Description |
---|---|
protected abstract Matrix3D<E> |
createMatrix3D(long slices,
long rows,
long columns,
int cardinality)
Create and return a new instance of an implementation of Matrix3D.
|
protected abstract E |
parse(String value)
Parse the specified value to an instance of type
E . |
Matrix3D<E> |
read(File file)
Read a 3D matrix from the specified file.
|
Matrix3D<E> |
read(URL url)
Read a 3D matrix from the specified URL.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
read
protected abstract E parse(String value) throws IOException
E
.value
- value to parseE
IOException
- if an IO error occursprotected abstract Matrix3D<E> createMatrix3D(long slices, long rows, long columns, int cardinality)
slices
- number of slicesrows
- number of rowscolumns
- number of columnscardinality
- approximate cardinalitypublic final Matrix3D<E> read(File file) throws IOException
read
in interface Matrix3DReader<E>
file
- file to read from, must not be nullIOException
- if an IO error occurspublic final Matrix3D<E> read(URL url) throws IOException
read
in interface Matrix3DReader<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).