|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.util.FilePath
The FilePath
class provides file path manipulation
utility functions.
Field Summary | |
static int |
LOADING
|
static int |
SAVING
|
Constructor Summary | |
FilePath()
|
Method Summary | |
static java.lang.String |
convertPath(java.lang.String path,
int direction)
Converts a fully set of pathnames to and from the native filesystem's format to the standard JDeveloper format (Windows Format, \ and ;) |
static java.lang.String |
getBasePath(java.lang.String absolutePath,
java.lang.String relativePath)
|
static java.lang.String |
getExtension(java.lang.String path)
Gets the file extension. |
static java.lang.String |
getFilename(java.lang.String path)
Gets the last entry in the specified path. |
static java.lang.String |
getName(java.lang.String path)
Gets file name without its extension. |
static java.lang.String |
getParent(java.lang.String path)
Gets the parent directory of the last entry in the specified path |
static boolean |
isAbsolute(java.lang.String filename)
Determines whether the specified filename has an absolute file path. |
static java.lang.String |
makePathQualified(java.lang.String root,
java.lang.String path)
|
static java.lang.String |
makePathRelative(java.lang.String root,
java.lang.String path)
|
static java.lang.String |
makePathRelative(java.lang.String root,
java.lang.String path,
boolean childrenOnly)
|
static java.lang.String |
makeQualified(java.lang.String root,
java.lang.String relative)
|
static java.lang.String |
makeRelative(java.lang.String root,
java.lang.String path)
Get the path relative to the specified root directory. |
static java.lang.String |
makeRelative(java.lang.String root,
java.lang.String path,
boolean childrenOnly)
Get the path relative to the specified root directory. |
static boolean |
mayBeADirectory(java.lang.String fname)
Return true if the specified name could be a directory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int LOADING
public static final int SAVING
Constructor Detail |
public FilePath()
Method Detail |
public static final boolean isAbsolute(java.lang.String filename)
filename
- the file on which to do the check.
public static final java.lang.String makeQualified(java.lang.String root, java.lang.String relative)
public static final java.lang.String makeRelative(java.lang.String root, java.lang.String path)
root
- the path with respect to which the relative path is
obtained.path
- the path whose relative relationship to root is sought.
public static final java.lang.String makeRelative(java.lang.String root, java.lang.String path, boolean childrenOnly)
root
- the path with respect to which the relative path is
obtained.path
- the path whose relative relationship to root is sought.childrenOnly
- indicates whether to convert the path only if it is
a child of the root.
public static java.lang.String makePathQualified(java.lang.String root, java.lang.String path)
public static java.lang.String makePathRelative(java.lang.String root, java.lang.String path)
public static java.lang.String makePathRelative(java.lang.String root, java.lang.String path, boolean childrenOnly)
public static final java.lang.String getParent(java.lang.String path)
path
- a file path.
public static final java.lang.String getFilename(java.lang.String path)
path
- a file path.
public static final java.lang.String getExtension(java.lang.String path)
path
- a file path.
public static final java.lang.String getName(java.lang.String path)
path
- a file path.
public static final boolean mayBeADirectory(java.lang.String fname)
fname
- a file path.
public static final java.lang.String convertPath(java.lang.String path, int direction)
direction
- to convert. This can be one of the following:FilePath.LOADINGi
FilePath.SAVING
public static final java.lang.String getBasePath(java.lang.String absolutePath, java.lang.String relativePath)
|
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.