|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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(String url)
Construct. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the resource. |
String |
getContentType()
Gets the mime type of this resource |
InputStream |
getInputStream()
Gets the resource stream. |
Time |
lastModifiedTime()
Gets the last time this modifiable thing changed. |
Bytes |
length()
Gets the size of this resource |
| 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 |
|---|
public WebExternalResourceStream(String url)
url - the relative url of the external resource| Method Detail |
|---|
public Bytes length()
IResourceStream
length in interface IResourceStreamlength in class AbstractResourceStreamnull if unknown
public void close()
throws IOException
IResourceStream
IOExceptionpublic Time lastModifiedTime()
IModifiable
lastModifiedTime in interface IModifiablelastModifiedTime in class AbstractResourceStreamTime or
null if that information is not availablepublic String getContentType()
IResourceStream
getContentType in interface IResourceStreamgetContentType in class AbstractResourceStream
public InputStream getInputStream()
throws ResourceStreamNotFoundException
IResourceStream
ResourceStreamNotFoundExceptionIResourceStream.close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||