| java.lang.Object com.izforge.izpack.util.FileUtil
FileUtil | public class FileUtil (Code) | | Provides general global file utility methods
author: marc.eppelmann |
Constructor Summary | |
public | FileUtil() Creates a new FileUtil object. |
FileUtil | public FileUtil()(Code) | | Creates a new FileUtil object.
|
fileContains | public static boolean fileContains(String aFileName, String aSearchString)(Code) | | Searches case sensitively, and returns true if the given SearchString occurs in the
first File with the given Filename.
Parameters: aFileName - A files name Parameters: aSearchString - the string search for true if found in the file otherwise false |
fileContains | public static boolean fileContains(String aFileName, String aSearchString, boolean caseInSensitiveSearch)(Code) | | Tests if the given File contains the given Search String
Parameters: aFileName - A files name Parameters: aSearchString - the String to search for Parameters: caseInSensitiveSearch - If false the Search is casesensitive true if found in the file otherwise false |
getFileContent | public static ArrayList getFileContent(String fileName) throws IOException(Code) | | Gets the content from a File as StringArray List.
Parameters: fileName - A file to read from. List of individual line of the specified file. List may be empty but notnull. throws: IOException - |
getFileDateTime | public static long getFileDateTime(URL url)(Code) | | Gets file date and time.
Parameters: url - The URL of the file for which date and time will be returned. Returns long value which is the date and time of the file. If any erroroccures returns -1 (=no file date and time available). |
main | public static void main(String[] args)(Code) | | Test main
Parameters: args - |
|
|