Here you can find the source of copyStream(InputStream src, OutputStream dest)
Parameter | Description |
---|---|
src | java.io.File |
dest | java.io.File |
public static void copyStream(InputStream src, OutputStream dest) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.*; public class Main { /**/*from w w w. j a v a 2 s. com*/ * Insert the method's description here. * Creation date: (30.01.01 09:22:29) * @param src java.io.File * @param dest java.io.File */ public static void copyStream(InputStream src, OutputStream dest) throws IOException { int c; while ((c = src.read()) != -1) { dest.write(c); } } }