/** * Writes <code>MLArrays</code> into <code>WritableByteChannel</code>. * * @param channel * the channel to write to * @param data * the collection of <code>{@link MLArray}</code> objects * @throws IOException * if writing fails */ public synchronized void write(Collection<MLArray> data) throws IOException { try { //write data for (MLArray matrix : data) { write(matrix); } } catch (IllegalArgumentException iae) { throw iae; } catch (IOException e) { throw e; } }
/** * Writes <code>MLArrays</code> into <code>WritableByteChannel</code>. * * @param channel * the channel to write to * @param data * the collection of <code>{@link MLArray}</code> objects * @throws IOException * if writing fails */ public synchronized void write(Collection<MLArray> data) throws IOException { try { //write data for (MLArray matrix : data) { write(matrix); } } catch (IllegalArgumentException iae) { throw iae; } catch (IOException e) { throw e; } }
/** * Writes <code>MLArrays</code> into <code>WritableByteChannel</code>. * * @param data * the collection of <code>{@link MLArray}</code> objects * @throws IOException * if writing fails */ public synchronized void write( Collection<MLArray> data) throws IOException { try { //write data for ( MLArray matrix : data ) { write(matrix); } } catch ( IllegalArgumentException iae) { isStillValid = false; throw iae; } catch ( IOException e ) { throw e; } }
write(matrix);