public class WebExternalResourceStream
extends org.apache.wicket.util.resource.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() |
org.apache.wicket.util.time.Time |
lastModifiedTime() |
org.apache.wicket.util.lang.Bytes |
length() |
public WebExternalResourceStream(String url)
url - the relative url of the external resourcepublic org.apache.wicket.util.lang.Bytes length()
length in interface org.apache.wicket.util.resource.IResourceStreamlength in class org.apache.wicket.util.resource.AbstractResourceStreampublic void close()
throws IOException
IOExceptionpublic org.apache.wicket.util.time.Time lastModifiedTime()
lastModifiedTime in interface org.apache.wicket.util.watch.IModifiablelastModifiedTime in class org.apache.wicket.util.resource.AbstractResourceStreampublic String getContentType()
getContentType in interface org.apache.wicket.util.resource.IResourceStreamgetContentType in class org.apache.wicket.util.resource.AbstractResourceStreampublic InputStream getInputStream() throws org.apache.wicket.util.resource.ResourceStreamNotFoundException
org.apache.wicket.util.resource.ResourceStreamNotFoundExceptionCopyright © 2006–2018 Apache Software Foundation. All rights reserved.