public class URLApplicationResource extends PostfixedApplicationResource
PostfixedApplicationResource
that can be accessed through a URL.Constructor and Description |
---|
URLApplicationResource(String path,
Locale locale,
URL url)
Creates a URLApplicationResource for the specified path that can be accessed through the specified URL.
|
URLApplicationResource(String localePath,
URL url)
Creates a URLApplicationResource for the specified path that can be accessed through the specified URL.
|
Modifier and Type | Method and Description |
---|---|
protected File |
getFile() |
InputStream |
getInputStream()
Get a java.io.InputStream to read the contents of this resource.
|
long |
getLastModified()
Get the last modification date for this resource.
|
protected URL |
getURL() |
String |
toString() |
equals, getLocale, getLocalePath, getLocalePath, getPath, hashCode
public URLApplicationResource(String localePath, URL url)
localePath
- the path including localization.url
- the URL where the contents can be found.public URLApplicationResource(String path, Locale locale, URL url)
path
- the path excluding localization.locale
- the Locale.url
- the URL where the contents can be found.public InputStream getInputStream() throws IOException
IOException
- if the contents cannot be read.public long getLastModified() throws IOException
IOException
- if the last modification date cannot be found.protected URL getURL()
protected File getFile()
Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.