code: public static void write(byte[] byteArray, OutputStream out) throws IOException {
  		if (byteArray != null) {
  			out.write(byteArray);
  		}
  	}
docs: Writes all the contents of a byte array to an OutputStream.
  
  @param byteArray
  the input to read from
  @param out
  the output stream to write to
  @throws java.io.IOException
  if an IOExcption occurs