public class FileUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
copyFile(File from,
File to) |
static void |
copyFolder(File sourceDir,
File destDir) |
static void |
delete(File file) |
static String |
getStreamContents(InputStream stream,
String charset) |
static void |
setContents(File to,
InputStream input) |
public static void copyFolder(File sourceDir, File destDir) throws IOException
IOException
public static void copyFile(File from, File to) throws IOException
IOException
public static void setContents(File to, InputStream input) throws IOException
IOException
public static String getStreamContents(InputStream stream, String charset) throws IOException
IOException
public static void delete(File file)
Copyright © 2008, 2018 Borland Software Corporation and others. All Rights Reserved.