public class UriResolver
extends java.lang.Object
Constructor and Description |
---|
UriResolver() |
UriResolver(java.lang.String path) |
UriResolver(java.lang.String baseUriStr,
java.lang.String uriStr) |
UriResolver(java.lang.String baseUriStr,
java.lang.String uriStr,
java.lang.Class calling) |
Modifier and Type | Method and Description |
---|---|
java.io.File |
getFile() |
java.io.InputStream |
getInputStream() |
static java.net.URL |
getResource(java.lang.String resourceName,
java.lang.Class callingClass)
Load a given resource.
|
java.net.URI |
getURI() |
java.net.URL |
getURL() |
boolean |
isFile() |
boolean |
isResolved() |
void |
resolve(java.lang.String baseUriStr,
java.lang.String uriStr,
java.lang.Class callingCls) |
public UriResolver()
public UriResolver(java.lang.String path) throws java.io.IOException
java.io.IOException
public UriResolver(java.lang.String baseUriStr, java.lang.String uriStr) throws java.io.IOException
java.io.IOException
public UriResolver(java.lang.String baseUriStr, java.lang.String uriStr, java.lang.Class calling) throws java.io.IOException
java.io.IOException
public void resolve(java.lang.String baseUriStr, java.lang.String uriStr, java.lang.Class callingCls) throws java.io.IOException
java.io.IOException
public java.net.URI getURI()
public java.net.URL getURL()
public java.io.InputStream getInputStream()
public boolean isFile()
public java.io.File getFile()
public boolean isResolved()
public static java.net.URL getResource(java.lang.String resourceName, java.lang.Class callingClass)
resourceName
- The name of the resource to loadcallingClass
- The Class object of the calling object