| java.lang.Object com.liferay.util.FileUtil
FileUtil | public class FileUtil (Code) | | View Source
author: Brian Wing Shun Chan author: Alexander Chow |
Method Summary | |
public static void | append(String fileName, String s) | public static void | append(String pathName, String fileName, String s) | public static void | append(File file, String s) | public static void | copyDirectory(String sourceDirName, String destinationDirName) | public static void | copyDirectory(File source, File destination) | public static void | copyFile(String source, String destination) | public static void | copyFile(String source, String destination, boolean lazy) | public static void | copyFile(File source, File destination) | public static void | copyFile(File source, File destination, boolean lazy) | public static boolean | delete(String file) | public static boolean | delete(File file) | public static void | deltree(String directory) | public static void | deltree(File directory) | public static boolean | exists(String fileName) | public static boolean | exists(File file) | public static String | getAbsolutePath(File file) | public static byte[] | getBytes(File file) | public static byte[] | getBytes(InputStream in) | public static byte[] | getBytes(InputStream in, int bufferSize) | public static String | getExtension(String fileName) | public static String | getPath(String fullFileName) | public static String | getShortFileName(String fullFileName) | public static String[] | listDirs(String fileName) | public static String[] | listDirs(File file) | public static String[] | listFiles(String fileName) | public static String[] | listFiles(File file) | public static void | mkdirs(String pathName) | public static boolean | move(String sourceFileName, String destinationFileName) | public static boolean | move(File source, File destination) | public static String | read(String fileName) | public static String | read(File file) | public static String | read(File file, boolean raw) | public static String | read(File file, String encoding, boolean raw) | public static String | replaceSeparator(String fileName) | public static File[] | sortFiles(File[] files) | public static List | toList(Reader reader) | public static List | toList(String fileName) | public static Properties | toProperties(FileInputStream fis) | public static Properties | toProperties(String fileName) | public static void | write(String fileName, String s) | public static void | write(String fileName, String s, boolean lazy) | public static void | write(String pathName, String fileName, String s) | public static void | write(String pathName, String fileName, String s, boolean lazy) | public static void | write(File file, String s) | public static void | write(File file, String s, boolean lazy) | public static void | write(File file, String s, boolean lazy, boolean append) | public static void | write(String fileName, byte[] byteArray) | public static void | write(File file, byte[] byteArray) | public static void | write(String fileName, InputStream in) | public static void | write(File file, InputStream in) |
copyDirectory | public static void copyDirectory(String sourceDirName, String destinationDirName)(Code) | | |
copyDirectory | public static void copyDirectory(File source, File destination)(Code) | | |
copyFile | public static void copyFile(String source, String destination, boolean lazy)(Code) | | |
copyFile | public static void copyFile(File source, File destination)(Code) | | |
copyFile | public static void copyFile(File source, File destination, boolean lazy)(Code) | | |
delete | public static boolean delete(File file)(Code) | | |
deltree | public static void deltree(File directory)(Code) | | |
exists | public static boolean exists(File file)(Code) | | |
|
|