public class UriResolver extends Object
| Constructor and Description |
|---|
UriResolver() |
UriResolver(String path) |
UriResolver(String baseUriStr,
String uriStr) |
UriResolver(String baseUriStr,
String uriStr,
Class calling) |
| Modifier and Type | Method and Description |
|---|---|
File |
getFile() |
InputStream |
getInputStream() |
static URL |
getResource(String resourceName,
Class callingClass)
Load a given resource.
|
URI |
getURI() |
URL |
getURL() |
boolean |
isFile() |
boolean |
isResolved() |
void |
resolve(String baseUriStr,
String uriStr,
Class callingCls) |
public UriResolver()
public UriResolver(String path) throws IOException
IOExceptionpublic UriResolver(String baseUriStr, String uriStr) throws IOException
IOExceptionpublic UriResolver(String baseUriStr, String uriStr, Class calling) throws IOException
IOExceptionpublic void resolve(String baseUriStr, String uriStr, Class callingCls) throws IOException
IOExceptionpublic URI getURI()
public URL getURL()
public InputStream getInputStream()
public boolean isFile()
public File getFile()
public boolean isResolved()
public static URL getResource(String resourceName, Class callingClass)
resourceName - The name of the resource to loadcallingClass - The Class object of the calling objectCopyright © 1999–2014 The Apache Software Foundation. All rights reserved.