|
Extension SDK 9.0.5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jdeveloper.vcs.util.VCSFileSystemUtils
Utility class for file system operations.
Method Summary | |
static java.net.URL[] |
canonicalizeURLs(java.net.URL[] urls)
Canonicalizes the given URLs and returns them in a new array. |
static java.net.URL[] |
getParentURLs(java.net.URL url)
Gets all parent URLs for the given file. |
static java.lang.String |
getPlatformPathName(java.net.URL url)
Gets the platform-dependent String representation of the URL. |
static java.lang.String[] |
getURLFileNames(java.net.URL[] urls)
Gets the filenames (including extensions) of the given URLs. |
static boolean |
isBaseURLFor(java.net.URL url1,
java.net.URL url2)
Asks whether url1 represents a directory and url2 points to a location within url1's directory tree. |
static java.net.URL |
newFileURL(java.lang.String filePath)
Creates a new URL using the "file" protocol. |
static java.net.URL[] |
newTargetURLs(java.net.URL[] urls,
java.net.URL target)
Creates new URLs for the target URL directory. |
static java.util.Map |
organizeURLsByParent(java.net.URL[] urls)
Organizes the given URLs by their parent directories. |
static java.net.URL[] |
removeRefAndQueryParts(java.net.URL[] urls)
Removes the reference and query parts of the given URLs. |
static java.net.URL |
searchSystemPath(java.lang.String name)
Searches the system environment path for a named executable URL. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static final java.util.Map organizeURLsByParent(java.net.URL[] urls)
urls
- the URLs to organize.
URL
->
Collection
).public static final java.lang.String[] getURLFileNames(java.net.URL[] urls)
urls
- the URLs whose filenames should be obtained.
public static final java.net.URL[] canonicalizeURLs(java.net.URL[] urls)
urls
- the URLs to canonicalize.
public static final java.net.URL searchSystemPath(java.lang.String name)
name
- the name of the executable file (minus extension) to search for.
public static final java.net.URL[] getParentURLs(java.net.URL url)
public static final boolean isBaseURLFor(java.net.URL url1, java.net.URL url2)
true
(unlike the
URLFileSystem implementation).
url1
- the potential base URL.url2
- the URL to test.
public static final java.net.URL[] newTargetURLs(java.net.URL[] urls, java.net.URL target)
urls
- the source URLs on which new URLs are based.target
- the target URL directory.
public static final java.net.URL newFileURL(java.lang.String filePath)
filePath
- the path for the URL to create.
public static final java.lang.String getPlatformPathName(java.net.URL url)
url
- the URL for the path to return.
public static final java.net.URL[] removeRefAndQueryParts(java.net.URL[] urls)
urls
- the URLs whose reference and query parts will be removed.
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.