|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.filesystem.URIUtil
This class provides utility methods for comparing, inspecting, and manipulating URIs.
This class is not intended to be instantiated or subclassed.
Method Summary | |
---|---|
static boolean |
equals(URI one,
URI two)
Tests two URIs for equality. |
static IPath |
toPath(URI uri)
Returns an IPath representing this URI
in the local file system, or null if this URI does
not represent a file in the local file system. |
static URI |
toURI(IPath path)
Converts an IPath representing a local file system path to a URI . |
static URI |
toURI(String pathString)
Converts a String representing a local file system path to a URI .
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static boolean equals(URI one, URI two)
URI.equals(Object)
method is used.
one
- The first URI to test for equalitytwo
- The second URI to test for equality
true
if the first URI is equal to the second,
as defined by the file systems for those URIs, and false
otherwise.public static IPath toPath(URI uri)
IPath
representing this URI
in the local file system, or null
if this URI does
not represent a file in the local file system.
uri
- The URI to convert
null
public static URI toURI(IPath path)
IPath
representing a local file system path to a URI
.
path
- The path to convert
public static URI toURI(String pathString)
URI
.
For example, this method can be used to create a URI from the output
of File.getAbsolutePath()
.
pathString
- The path string to convert
|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.