A call tmp.readFrom(in)
has the same effect as the following code:
OutputStream out = tmp.getOutputStream(); IOUtils.copy(in, out); out.close();However it does so in a more efficient way. @param in An InputStream to read data from. This method will notclose the stream. @throws IOException in case of an error in reading from
InputStream
|
|