|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.jdic.filetypes.internal.AppUtility
public class AppUtility
Utility class containing shared methods.
| Method Summary | |
|---|---|
static java.lang.String |
addDotToFileExtension(java.lang.String fileExt)
Adds one leading '.' character for the specified file extension. |
static java.lang.String |
getFileExtensionByURL(java.net.URL url)
Returns the file extension from the file part of the URL. |
static java.lang.String |
removeDotFromFileExtension(java.lang.String fileExt)
Removes the leading '.' character from the specified file extension. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String getFileExtensionByURL(java.net.URL url)
For example: if the URL is http://www.sun.com/index.html, the returned file extension is ".html".
url - the specified URL
public static java.lang.String removeDotFromFileExtension(java.lang.String fileExt)
fileExt - the specified file extension.
public static java.lang.String addDotToFileExtension(java.lang.String fileExt)
fileExt - the specified file extension.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||