Class CopyUtil
- java.lang.Object
-
- ch.supertomcat.supertomcatutils.io.CopyUtil
-
public final class CopyUtil extends Object
Class which provides methods to copy a file
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcopy(InputStream in, OutputStream out)Copies InputStream to OutputStreamstatic booleancopy(String source, String target)Copy a file
-
-
-
Method Detail
-
copy
public static boolean copy(String source, String target)
Copy a file- Parameters:
source- Sourcetarget- Target- Returns:
- True if successful
-
copy
public static void copy(InputStream in, OutputStream out) throws IOException
Copies InputStream to OutputStream- Parameters:
in- InputStreamout- OutputStream- Throws:
IOException
-
-