question: private void copyStream ( InputStream is , OutputStream os ) throws IOException { try { byte [ ] buffer = new byte [ 1024 ] ; int len ; while ( ( len = is . read ( buffer ) ) != - 1 ) { os . write ( buffer , 0 , len ) ; } } catch ( IOException e ) { throw new IOException ( "Unable to copy the content of an input stream into an output stream" , e ) ; } }
target:  Copies (writes) an input stream to an output stream