code: 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;
          }
      }
docs: 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