org.apache.wicket.core.util.resource
Class WebExternalResourceStream
java.lang.Object
org.apache.wicket.util.resource.AbstractResourceStream
org.apache.wicket.core.util.resource.WebExternalResourceStream
- All Implemented Interfaces:
- Closeable, Serializable, IClusterable, IResourceStream, IModifiable
public class WebExternalResourceStream
- extends AbstractResourceStream
An IResourceStream that reads data from a file in the web application
- Author:
- Jean-Baptiste Quenot
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebExternalResourceStream
public WebExternalResourceStream(String url)
- Construct.
- Parameters:
url - the relative url of the external resource
length
public Bytes length()
- Specified by:
length in interface IResourceStream- Overrides:
length in class AbstractResourceStream
close
public void close()
throws IOException
- Throws:
IOException
lastModifiedTime
public Time lastModifiedTime()
- Specified by:
lastModifiedTime in interface IModifiable- Overrides:
lastModifiedTime in class AbstractResourceStream
getContentType
public String getContentType()
- Specified by:
getContentType in interface IResourceStream- Overrides:
getContentType in class AbstractResourceStream
getInputStream
public InputStream getInputStream()
throws ResourceStreamNotFoundException
- Throws:
ResourceStreamNotFoundException
Copyright © 2006–2014 Apache Software Foundation. All rights reserved.