public class UrlResourceStream
extends org.apache.wicket.util.resource.AbstractResourceStream
implements org.apache.wicket.util.resource.IFixedLocationResourceStream
IResourceStream,
IModifiable,
Serialized Form| Constructor and Description |
|---|
UrlResourceStream(URL url)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this resource.
|
String |
getContentType() |
InputStream |
getInputStream() |
URL |
getURL() |
org.apache.wicket.util.time.Time |
lastModifiedTime() |
org.apache.wicket.util.lang.Bytes |
length() |
String |
locationAsString() |
String |
toString() |
public UrlResourceStream(URL url)
url - URL of resourcepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface org.apache.wicket.util.resource.IResourceStreamIOExceptionpublic InputStream getInputStream() throws org.apache.wicket.util.resource.ResourceStreamNotFoundException
getInputStream in interface org.apache.wicket.util.resource.IResourceStreamorg.apache.wicket.util.resource.ResourceStreamNotFoundExceptionpublic URL getURL()
public org.apache.wicket.util.time.Time lastModifiedTime()
lastModifiedTime in interface org.apache.wicket.util.watch.IModifiablelastModifiedTime in class org.apache.wicket.util.resource.AbstractResourceStreamIModifiable.lastModifiedTime()public String getContentType()
getContentType in interface org.apache.wicket.util.resource.IResourceStreamgetContentType in class org.apache.wicket.util.resource.AbstractResourceStreampublic org.apache.wicket.util.lang.Bytes length()
length in interface org.apache.wicket.util.resource.IResourceStreamlength in class org.apache.wicket.util.resource.AbstractResourceStreampublic String locationAsString()
locationAsString in interface org.apache.wicket.util.resource.IFixedLocationResourceStreamCopyright © 2006–2018 Apache Software Foundation. All rights reserved.