URIPathDescriptor
instead.public class PathDescriptor extends Object
Constructor and Description |
---|
PathDescriptor(String path)
Deprecated.
Construct a PathDescriptor from a path.
|
PathDescriptor(String base,
String path)
Deprecated.
Construct a PathDescriptor from a path and a base.
|
PathDescriptor(URL baseUrl,
String path)
Deprecated.
Construct a PathDescriptor from a path and a base.
|
Modifier and Type | Method and Description |
---|---|
URL |
getBaseUrl()
Deprecated.
Get the base URL.
|
String |
getLocation()
Deprecated.
Get the location for files.
|
String |
getPath()
Deprecated.
Get the path.
|
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.
|
String |
toString()
Deprecated.
|
public PathDescriptor(String path) throws MalformedURLException
path
- the path.MalformedURLException
- if a URL cannot be formed from the path.public PathDescriptor(String base, String path) throws MalformedURLException
base
- a base reference.path
- the path.MalformedURLException
- if a URL cannot be formed from the path.public PathDescriptor(URL baseUrl, String path) throws MalformedURLException
baseUrl
- a base reference.path
- the path.MalformedURLException
- if a URL cannot be formed from the path.public boolean isFile()
public boolean isRelative()
getPathUrl()
returns null.public URL getBaseUrl()
public URL getPathUrl()
public String getPath()
public String getLocation()
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.