chameria-webview-factory/src/main/java/de/akquinet/chameria/webview/WebViewFactory.java
public static void write(InputStream in, OutputStream out)
            throws IOException {
        byte[] b = new byte[4096];
        for (int n; (n = in.read(b)) != -1;) {
            out.write(b, 0, n);
        }
        in.close();
        out.close();
    }
public static void write(InputStream in, OutputStream out)
            throws IOException {
        byte[] b = new byte[4096];
        for (int n; (n = in.read(b)) != -1;) {
            out.write(b, 0, n);
        }
        in.close();
        out.close();
    }
public static void write ( InputStream in , OutputStream out ) throws IOException { byte [ ] b = new byte [ 4096 ] ; for ( int n ; ( n = in . read ( b ) ) != - 1 ; ) { out . write ( b , 0 , n ) ; } in . close ( ) ; out . close ( ) ; }
Utility method to copy a stream to another stream.
@param in the stream to copy
@param out the destination
@throws IOException the stream cannot be copied
Utility method to copy a stream to another stream .