code: public void writeTo(final OutputStream out) throws IOException
  	{
  		if(out == null) throw new NullPointerException();
  		
  		final int n = arrays.size();
  		for(int k = 0; k < n; k++) {
  			byte[] src = (byte[])arrays.get(k);
  			out.write(src);
  		}
  		if(pos > 0) out.write(buffer, 0, pos);
  	}
docs: Writes all data that has been written to this buffer to the given output stream.
  
  @param out
  @throws IOException