| java.lang.Object org.apache.beehive.netui.util.internal.FileUtils
FileUtils | public class FileUtils (Code) | | |
Method Summary | |
public static String | getFileExtension(String filename) Get the file extension from a file name.
Parameters: filename - the file name. | public static boolean | isAbsoluteURI(String uri) Tell whether a given URI is absolute, i.e., whether it contains a scheme-part (e.g., "http:").
Parameters: uri - the URI to test. | public static boolean | isOSCaseSensitive() Tell whether the current operating system is case-sensitive with regard to file names. | public static boolean | osSensitiveEndsWith(String str, String suffix) Tell whether a string ends with a particular suffix, with case sensitivity determined by the operating system.
Parameters: str - the String to test. Parameters: suffix - the suffix to look for. | public static boolean | osSensitiveEquals(String s1, String s2) Compare two strings, with case sensitivity determined by the operating system.
Parameters: s1 - the first String to compare. Parameters: s2 - the second String to compare. | public static String | stripFileExtension(String filename) | public static boolean | uriEndsWith(String uri, String ending) Tell whether a URI ends in a given String. |
getFileExtension | public static String getFileExtension(String filename)(Code) | | Get the file extension from a file name.
Parameters: filename - the file name. the file extension (everything after the last '.'), or the empty string if there is nofile extension. |
isAbsoluteURI | public static boolean isAbsoluteURI(String uri)(Code) | | Tell whether a given URI is absolute, i.e., whether it contains a scheme-part (e.g., "http:").
Parameters: uri - the URI to test. true if the given URI is absolute. |
isOSCaseSensitive | public static boolean isOSCaseSensitive()(Code) | | Tell whether the current operating system is case-sensitive with regard to file names.
|
osSensitiveEndsWith | public static boolean osSensitiveEndsWith(String str, String suffix)(Code) | | Tell whether a string ends with a particular suffix, with case sensitivity determined by the operating system.
Parameters: str - the String to test. Parameters: suffix - the suffix to look for. true when:str ends with suffix , or,- the operating system is not case-sensitive with regard to file names, and
str ends withsuffix , ignoring case.
See Also: FileUtils.isOSCaseSensitive() |
osSensitiveEquals | public static boolean osSensitiveEquals(String s1, String s2)(Code) | | Compare two strings, with case sensitivity determined by the operating system.
Parameters: s1 - the first String to compare. Parameters: s2 - the second String to compare. true when:- the strings match exactly (including case), or,
- the operating system is not case-sensitive with regard to file names, and the strings match,ignoring case.
See Also: FileUtils.isOSCaseSensitive() |
uriEndsWith | public static boolean uriEndsWith(String uri, String ending)(Code) | | Tell whether a URI ends in a given String.
|
|
|