| java.lang.Object org.netbeans.installer.utils.FileUtils
FileUtils | final public class FileUtils (Code) | | author: Kirill Sorokin |
Method Summary | |
public static FilesList | appendFile(File file, CharSequence string) | public static FilesList | appendFile(File file, CharSequence string, String charset) | public static FilesList | appendFile(File file, InputStream input) | public static boolean | canRead(File file) | public static boolean | canWrite(File file) | public static FilesList | copyFile(File source, File target) | public static FilesList | copyFile(File source, File target, Progress progress) | public static FilesList | copyFile(File source, File target, boolean recurse) | public static FilesList | copyFile(File source, File target, boolean recurse, Progress progress) | public static long | countChildren(File file) | public static File | createTempFile() | public static File | createTempFile(File parent) | public static File | createTempFile(File parent, boolean create) | public static File | createTempFile(File parent, boolean create, boolean directory) | public static void | deleteEmptyParents(File file) | public static void | deleteFile(File file) | public static void | deleteFile(File file, Progress progress) | public static void | deleteFile(File file, boolean recurse) | public static void | deleteFile(File file, boolean recurse, Progress progress) | public static void | deleteFiles(List<File> files) | public static void | deleteFiles(List<File> files, Progress progress) | public static void | deleteFiles(File... files) | public static void | deleteFiles(Progress progress, File... files) | public static void | deleteFiles(FilesList files) | public static void | deleteFiles(FilesList files, Progress progress) | public static void | deleteOnExit(File file) | public static void | deleteWithEmptyParents(File file) | public static File | eliminateRelativity(String path) | public static boolean | exists(File file) | public static File | extractJarEntry(String entry, File source) | public static File | extractJarEntry(String entry, File source, File target) | public static File | findFile(File directory, String filename) | public static long | getCrc32(File file) | public static long | getCrc32(InputStream input) | public static byte[] | getDigestBytes(File file, String algorithm) | public static byte[] | getDigestBytes(InputStream input, String algorithm) | public static long | getFreeSpace(File file) | public static String | getJarAttribute(File file, String name) | public static Date | getLastModified(File file) | public static String | getMd5(File file) | public static String | getMd5(InputStream input) | public static byte[] | getMd5Bytes(File file) | public static byte[] | getMd5Bytes(InputStream input) | public static String | getRelativePath(File source, File target) | public static File | getRoot(File fileRequested, List<File> roots) | public static File | getRoot(File file) | public static String | getSha1(File file) | public static byte[] | getSha1Bytes(File file) | public static long | getSize(File file) | public static boolean | isEmpty(File file) | public static boolean | isJarFile(File file) | public static boolean | isParent(File candidate, File file) | public static boolean | isSigned(File file) | public static boolean | isUNCPath(String path) | public static boolean | jarEntryExists(File file, String entry) | public static FilesList | mkdirs(File file) | public static void | modifyFile(File file, String token, Object replacement) | public static void | modifyFile(File file, String token, Object replacement, boolean regexp) | public static void | modifyFile(File file, Map<String, Object> map) | public static void | modifyFile(File file, Map<String, Object> map, boolean regexp) | public static void | modifyFiles(List<File> files, Map<String, Object> map, boolean regexp) | public static void | modifyFiles(List<File> files, Map<String, Object> map, boolean regexp, Progress progress) | public static FilesList | moveFile(File source, File target) | public static FilesList | moveFile(File source, File target, Progress progress) | public static File | pack(File source) | public static String | readFile(File file) | public static String | readFirstLine(File file) | public static List<String> | readStringList(File file) | public static FilesList | unjar(File source, File target) | public static FilesList | unjar(File source, File target, Progress progress) | public static File | unpack(File source) | public static FilesList | unzip(File source, File target) | public static FilesList | unzip(File source, File target, Progress progress) | public static FilesList | writeFile(File file, CharSequence string) | public static FilesList | writeFile(File file, CharSequence string, String charset) | public static FilesList | writeFile(File file, CharSequence string, boolean append) | public static FilesList | writeFile(File file, CharSequence string, String charset, boolean append) | public static FilesList | writeFile(File file, InputStream input) | public static FilesList | writeFile(File file, InputStream input, boolean append) | public static FilesList | writeStringList(File file, List<String> list) | public static FilesList | writeStringList(File file, List<String> list, String charset) | public static FilesList | writeStringList(File file, List<String> list, boolean append) | public static FilesList | writeStringList(File file, List<String> list, String charset, boolean append) | public static void | zip(File file, ZipOutputStream output, File root, List<File> excludes) | public static boolean | zipEntryExists(File file, String entry) |
BUFFER_SIZE | final public static int BUFFER_SIZE(Code) | | |
ERROR_CANT_CLOSE_JAR_KEY | final public static String ERROR_CANT_CLOSE_JAR_KEY(Code) | | |
ERROR_CANT_CREATE_DIR_EXIST_FILE_KEY | final public static String ERROR_CANT_CREATE_DIR_EXIST_FILE_KEY(Code) | | |
ERROR_CANT_CREATE_DIR_KEY | final public static String ERROR_CANT_CREATE_DIR_KEY(Code) | | |
ERROR_CANT_GET_FREE_SPACE_KEY | final public static String ERROR_CANT_GET_FREE_SPACE_KEY(Code) | | |
ERROR_CLOSE_STREAM_KEY | final public static String ERROR_CLOSE_STREAM_KEY(Code) | | |
ERROR_DEST_CREATION_KEY | final public static String ERROR_DEST_CREATION_KEY(Code) | | |
ERROR_DEST_NOT_FILE_KEY | final public static String ERROR_DEST_NOT_FILE_KEY(Code) | | |
ERROR_DEST_NOT_WRITABLE_KEY | final public static String ERROR_DEST_NOT_WRITABLE_KEY(Code) | | |
ERROR_FILE_SECURITY_EXCEPTION_KEY | final public static String ERROR_FILE_SECURITY_EXCEPTION_KEY(Code) | | |
ERROR_LOAD_XML_FILE_LIST_KEY | final public static String ERROR_LOAD_XML_FILE_LIST_KEY(Code) | | |
ERROR_MD5_NOT_SUPPORTED_KEY | final public static String ERROR_MD5_NOT_SUPPORTED_KEY(Code) | | |
ERROR_NOT_JAR_FILE_KEY | final public static String ERROR_NOT_JAR_FILE_KEY(Code) | | |
ERROR_OUTPUT_DIR_ENTRY_KEY | final public static String ERROR_OUTPUT_DIR_ENTRY_KEY(Code) | | |
ERROR_OUTPUT_FILE_ENTRY_KEY | final public static String ERROR_OUTPUT_FILE_ENTRY_KEY(Code) | | |
ERROR_PACK200_FAILED_KEY | final public static String ERROR_PACK200_FAILED_KEY(Code) | | |
ERROR_SHA1_NOT_SUPPORTED_KEY | final public static String ERROR_SHA1_NOT_SUPPORTED_KEY(Code) | | |
ERROR_SOURCE_NOT_READABLE_KEY | final public static String ERROR_SOURCE_NOT_READABLE_KEY(Code) | | |
ERROR_UNJAR_TODIR_KEY | final public static String ERROR_UNJAR_TODIR_KEY(Code) | | |
ERROR_UNPACK200_FAILED_KEY | final public static String ERROR_UNPACK200_FAILED_KEY(Code) | | |
FILES_LIST_ENTRY | final public static String FILES_LIST_ENTRY(Code) | | |
INFO_PLIST_STUB | final public static String INFO_PLIST_STUB(Code) | | |
MD5_DIGEST_NAME | final public static String MD5_DIGEST_NAME(Code) | | |
MESSAGE_COPY_DIRECTORY | final public static String MESSAGE_COPY_DIRECTORY(Code) | | |
MESSAGE_COPY_FILE | final public static String MESSAGE_COPY_FILE(Code) | | |
MESSAGE_DELETE_DIR | final public static String MESSAGE_DELETE_DIR(Code) | | |
MESSAGE_DELETE_FILE | final public static String MESSAGE_DELETE_FILE(Code) | | |
MESSAGE_EXTRACTING | final public static String MESSAGE_EXTRACTING(Code) | | |
MESSAGE_MOVING | final public static String MESSAGE_MOVING(Code) | | |
PACK_GZ_SUFFIX | final public static String PACK_GZ_SUFFIX(Code) | | |
PROPERTIES_EXTENSION | final public static String PROPERTIES_EXTENSION(Code) | | |
SHA1_DIGEST_NAME | final public static String SHA1_DIGEST_NAME(Code) | | |
canRead | public static boolean canRead(File file)(Code) | | |
canWrite | public static boolean canWrite(File file)(Code) | | |
countChildren | public static long countChildren(File file)(Code) | | |
deleteOnExit | public static void deleteOnExit(File file)(Code) | | |
exists | public static boolean exists(File file)(Code) | | |
getFreeSpace | public static long getFreeSpace(File file)(Code) | | |
getSize | public static long getSize(File file)(Code) | | |
isEmpty | public static boolean isEmpty(File file)(Code) | | |
isJarFile | public static boolean isJarFile(File file)(Code) | | |
isParent | public static boolean isParent(File candidate, File file)(Code) | | |
|
|