Method Summary |
|
public static String | computeMD5FromFile(String file) Von der (vorhandenen) Blobdatei den MD5 berechnen. |
public static String | convertBackSlashes(String path) converts one slash into 2 backslashes. |
public static String | convertBackSlashesNoParams(String aPath) converts only if backslash is not proceeded by a blank. |
public static String | convertSlashes(String path) converts 2 backslashes into one slash. |
public static boolean | copy(String source, String destination) Copy source location to destination. |
public static boolean | copy(String source, String destination, boolean subdirectories) Copy source location to destination. |
public static boolean | createDirectories(String directory) Create a directory; all non-existent ancestor directories are.
automatically created
Parameters: directory - the directory to create. |
public static boolean | createDirectory(String directory) Create a directory; all ancestor directories must exist. |
public static boolean | createDirectoryStructure(String aDirectory, String[] subdirectories) Create a directory and a number of subdirectories specified in the String
array automatically created.
Parameters: aDirectory - the directory to create. Parameters: subdirectories - array with the subdirectories to create. |
public static String | eliminateDoubleSlashes(String filename) Eleminates // in a filename. |
public static String | extractName(File file) getting the file extension.
Parameters: file - the file to get the extension from. |
public static void | fileCopy(File src, File dest, boolean keepDate) A File copy which should be quite fast. |
public static void | fileCopy(File src, File dest) A File copy which should be quite fast. |
public static void | fileCopy(File[] files, File installSiteDir) copy a list of list into a directory. |
public static boolean | fileExists(String fileName) Retrieves the existance of a file or directory (to be or not to be....).
Parameters: fileName - name of the file or directory. |
protected static boolean | filecopy(String source, String destination, boolean subdirectories) Copy source location to destination. |
public static String | formatFileNameToBlobName(String filename) Ersetzung von ungültigen zeichen für den Blobnamen. |
public static File | getAbsoluteFile(String filename) Parameters: filename - A filename that may be a relative filename like "." or "..". |
public static String | getExtension(File file) getting the file extension.
Parameters: file - the file to get the extension from. |
public static File[] | getFiles(File baseDir, boolean recursive) getting all files recursivly from a directory.
Parameters: baseDir - where to search from. Parameters: recursive - search the file structure recursivly. |
public static String | getTempFileName(String pre, String suf, String dir) Diese Methode dient der Erzeugung einer temporären Datei in einem
definierten Verzeichnis. |
public static String | getTempPath() |
public static String | makeDirectory(String aPath) making a string to a directory with ending on File.separator. |
public static boolean | move(String source, String destination) Move / Rename source location to destination. |
public static String | normPath(String aPath) converting the given path with an File.separator at the end. |
public static ArrayList | readFileToArrayList(String fileName) reading a file into an arraylist. |
public static String | readFileToString(String fileName) reading a file into an string. |
public static boolean | remove(String filename, boolean bRecursive) removes a directory recursively. |
public static boolean | remove(String filename, boolean bRecursive, ArrayList excludes) removes a directory recursively. |
public static boolean | remove(String filename) Delete the file. |
public static void | writeStringToFile(String filename, String content) simple writing a string into a file. |