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 |
|---|---|
InputStream |
getInputStream()
Get a java.io.InputStream to read the contents of this resource.
|
long |
getLastModified()
Get the last modification date for this resource.
|
String |
toString() |
equals, getLocale, getLocalePath, getLocalePath, getPath, hashCodepublic 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.Copyright © 2000–2025 Apache Software Foundation. All rights reserved.