I was surprised to find today that I couldn\'t track down any simple way to write the contents of an InputStream to an OutputStream in Java. Obviou
InputStream
OutputStream
Use Commons Net's Util class:
import org.apache.commons.net.io.Util; ... Util.copyStream(in, out);