| java.lang.Object org.underworldlabs.util.FileUtils
FileUtils | public class FileUtils (Code) | | File access utilities.
author: Takis Diakoumis version: $Revision: 1.5 $ |
Method Summary | |
public static void | copyFile(String from, String to) | public static void | copyResource(String from, String to) Copies the file at the specified from path to the
specified to path. | public static boolean | fileExists(String path) | public static String | loadFile(File file) | public static String | loadFile(String path) | public static String | loadFile(String path, boolean escapeLines) | public static String | loadFile(File file, boolean escapeLines) | public static Properties | loadProperties(String path, Properties defaults) | public static Properties | loadProperties(File file, Properties defaults) | public static Properties | loadProperties(String path) | public static Properties | loadProperties(File file) | public static Properties | loadPropertiesResource(String path) | public static String | loadResource(String path) | public static Object | readObject(String path) | public static Object | readObject(File file) | public static void | storeProperties(String path, Properties properties, String header) | public static void | storeProperties(File file, Properties properties, String header) | public static void | writeFile(String path, String text) | public static void | writeFile(String path, String text, boolean append) | public static void | writeFile(File file, String text) | public static void | writeFile(File file, String text, boolean append) | public static void | writeObject(Object object, String path) |
copyResource | public static void copyResource(String from, String to) throws IOException(Code) | | Copies the file at the specified from path to the
specified to path.
Parameters: from - - the from path Parameters: to - - the to path throws: IOException - |
fileExists | public static boolean fileExists(String path)(Code) | | |
|
|