E
- 2D matrix element typepublic abstract class AbstractMatrix2DWriter<E> extends Object implements Matrix2DWriter<E>
Constructor and Description |
---|
AbstractMatrix2DWriter() |
Modifier and Type | Method and Description |
---|---|
void |
write(Matrix2D<? extends E> matrix,
File file)
Write the specified 2D matrix to the specified file.
|
void |
write(Matrix2D<? extends E> matrix,
OutputStream outputStream)
Write the specified 2D matrix to the specified output stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
append
public final void write(Matrix2D<? extends E> matrix, File file) throws IOException
write
in interface Matrix2DWriter<E>
matrix
- 2D matrix to write, must not be nullfile
- file to write to, must not be nullIOException
- if an IO error occurspublic final void write(Matrix2D<? extends E> matrix, OutputStream outputStream) throws IOException
write
in interface Matrix2DWriter<E>
matrix
- 2D matrix to write, must not be nulloutputStream
- output stream to write to, 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).