|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.util.resource.AbstractResourceStream org.apache.wicket.util.resource.WebExternalResourceStream
public class WebExternalResourceStream
An IResourceStream
that reads data from a file in the web application
Constructor Summary | |
---|---|
WebExternalResourceStream(java.lang.String url)
Construct. |
Method Summary | |
---|---|
void |
close()
Closes the resource. |
java.lang.String |
getContentType()
Gets the mime type of this resource |
java.io.InputStream |
getInputStream()
Gets the resource stream. |
Time |
lastModifiedTime()
Gets the last time this modifiable thing changed. |
long |
length()
Not implemented, throws WicketRuntimeException |
Methods inherited from class org.apache.wicket.util.resource.AbstractResourceStream |
---|
asString, getCharset, getLocale, setCharset, setLocale |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebExternalResourceStream(java.lang.String url)
url
- the relative url of the external resourceMethod Detail |
---|
public long length()
WicketRuntimeException
length
in interface IResourceStream
length
in class AbstractResourceStream
IResourceStream.length()
public void close() throws java.io.IOException
IResourceStream
java.io.IOException
public Time lastModifiedTime()
IModifiable
lastModifiedTime
in interface IModifiable
lastModifiedTime
in class AbstractResourceStream
Time
IModifiable.lastModifiedTime()
public java.lang.String getContentType()
IResourceStream
getContentType
in interface IResourceStream
getContentType
in class AbstractResourceStream
ResourceStreamRequestTarget
handle the Content-Type automaticallyIResourceStream.getContentType()
public java.io.InputStream getInputStream() throws ResourceStreamNotFoundException
IResourceStream
ResourceStreamNotFoundException
IResourceStream.close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |