oracle.ide.layout
Class URL2String
java.lang.Object
oracle.ide.layout.URL2String
- public final class URL2String
- extends java.lang.Object
This class mediates the conversion of a URL
object to and from a String representation. Support for interconversion of relative and absolute forms and expansion of macros is implemented here. The terms that java.net.URL uses for the parts of an URL are -- protocol://userinfo@host:port/path?query#ref
Method Summary |
static java.lang.String |
toString(java.net.URL url)
Takes an url and returns all its parts as a String . |
static java.net.URL |
toURL(java.lang.String urlString)
Takes a String obtained by the call to the toString method and builds up an URL . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
toString
public static java.lang.String toString(java.net.URL url)
- Takes an
url
and returns all its parts as a String
. The protocol must be specified in an absolute URI.
toURL
public static java.net.URL toURL(java.lang.String urlString)
- Takes a
String
obtained by the call to the toString
method and builds up an URL
.
Copyright © 1997, 2004, Oracle. All rights reserved.