public class WebExternalResourceStream extends AbstractResourceStream
IResourceStream that reads data from a file in the web application| Constructor and Description |
|---|
WebExternalResourceStream(String url)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getContentType() |
InputStream |
getInputStream() |
Time |
lastModifiedTime() |
Bytes |
length() |
getLocale, getStyle, getVariation, setLocale, setStyle, setVariationpublic WebExternalResourceStream(String url)
url - the relative url of the external resourcepublic Bytes length()
length in interface IResourceStreamlength in class AbstractResourceStreampublic void close()
throws IOException
IOExceptionpublic Time lastModifiedTime()
lastModifiedTime in interface IModifiablelastModifiedTime in class AbstractResourceStreampublic String getContentType()
getContentType in interface IResourceStreamgetContentType in class AbstractResourceStreampublic InputStream getInputStream() throws ResourceStreamNotFoundException
ResourceStreamNotFoundExceptionCopyright © 2006–2021 Apache Software Foundation. All rights reserved.