URIPathDescriptor
instead.public class PathDescriptor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.net.URL |
baseUrl
Deprecated.
|
private java.net.URL |
pathUrl
Deprecated.
|
private java.lang.String |
relativePath
Deprecated.
|
Constructor and Description |
---|
PathDescriptor(java.lang.String path)
Deprecated.
Construct a PathDescriptor from a path.
|
PathDescriptor(java.lang.String base,
java.lang.String path)
Deprecated.
Construct a PathDescriptor from a path and a base.
|
PathDescriptor(java.net.URL baseUrl,
java.lang.String path)
Deprecated.
Construct a PathDescriptor from a path and a base.
|
Modifier and Type | Method and Description |
---|---|
private static java.net.URL |
buildBaseUrl(java.lang.String base)
Deprecated.
|
private static java.net.URL |
buildUrl(java.net.URL baseUrl,
java.lang.String path)
Deprecated.
|
java.net.URL |
getBaseUrl()
Deprecated.
Get the base URL.
|
java.lang.String |
getLocation()
Deprecated.
Get the location for files.
|
java.lang.String |
getPath()
Deprecated.
Get the path.
|
java.net.URL |
getPathUrl()
Deprecated.
Get the path as a URL.
|
boolean |
isFile()
Deprecated.
Check if this PathDescriptor describes a file.
|
boolean |
isRelative()
Deprecated.
Check if this PathDescriptor describes a relative path.
|
java.lang.String |
toString()
Deprecated.
|
private final java.net.URL baseUrl
private final java.net.URL pathUrl
private final java.lang.String relativePath
public PathDescriptor(java.lang.String path) throws java.net.MalformedURLException
path
- the path.java.net.MalformedURLException
- if a URL cannot be formed from the path.public PathDescriptor(java.lang.String base, java.lang.String path) throws java.net.MalformedURLException
base
- a base reference.path
- the path.java.net.MalformedURLException
- if a URL cannot be formed from the path.public PathDescriptor(java.net.URL baseUrl, java.lang.String path) throws java.net.MalformedURLException
baseUrl
- a base reference.path
- the path.java.net.MalformedURLException
- if a URL cannot be formed from the path.private static java.net.URL buildBaseUrl(java.lang.String base) throws java.net.MalformedURLException
java.net.MalformedURLException
private static java.net.URL buildUrl(java.net.URL baseUrl, java.lang.String path) throws java.net.MalformedURLException
java.net.MalformedURLException
public boolean isFile()
public boolean isRelative()
getPathUrl()
returns null.public java.net.URL getBaseUrl()
public java.net.URL getPathUrl()
public java.lang.String getPath()
public java.lang.String getLocation()
public java.lang.String toString()
toString
in class java.lang.Object