public static void write ( final InputStream inputStream , final OutputStream outputStream ) throws FileNotFoundException , IOException { int counter ; final byte byteArray [ ] = new byte [ FileConst . BLOCKSIZE ] ; while ( ( counter = inputStream . read ( byteArray ) ) != - 1 ) { outputStream . write ( byteArray , 0 , counter ) ; } }
Writes the given input stream to the output stream .