org.apache.wicket.core.util.resource
Class WebExternalResourceStream

java.lang.Object
  extended by org.apache.wicket.util.resource.AbstractResourceStream
      extended by 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

Constructor Summary
WebExternalResourceStream(String url)
          Construct.
 
Method Summary
 void close()
           
 String getContentType()
           
 InputStream getInputStream()
           
 Time lastModifiedTime()
           
 Bytes length()
           
 
Methods inherited from class org.apache.wicket.util.resource.AbstractResourceStream
getLocale, getStyle, getVariation, setLocale, setStyle, setVariation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebExternalResourceStream

public WebExternalResourceStream(String url)
Construct.

Parameters:
url - the relative url of the external resource
Method Detail

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-2013 Apache Software Foundation. All Rights Reserved.