|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.util.resource.ResourceStreamWrapper
public class ResourceStreamWrapper
A IResourceStream that wraps another resource stream
| Constructor Summary | |
|---|---|
ResourceStreamWrapper(IResourceStream delegate)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the resource. |
String |
getContentType()
Gets the mime type of this resource |
IResourceStream |
getDelegate()
|
InputStream |
getInputStream()
Gets the resource stream. |
Locale |
getLocale()
|
String |
getStyle()
|
String |
getVariation()
|
Time |
lastModifiedTime()
Gets the last time this modifiable thing changed. |
Bytes |
length()
Gets the size of this resource |
void |
setLocale(Locale locale)
This method shouldn't be used from the outside. |
void |
setStyle(String style)
This method shouldn't be used from the outside. |
void |
setVariation(String variation)
This method shouldn't be used from the outside. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceStreamWrapper(IResourceStream delegate)
| Method Detail |
|---|
public IResourceStream getDelegate()
public String getContentType()
IResourceStream
getContentType in interface IResourceStreampublic Bytes length()
IResourceStream
length in interface IResourceStreamnull if unknown
public InputStream getInputStream()
throws ResourceStreamNotFoundException
IResourceStream
getInputStream in interface IResourceStreamResourceStreamNotFoundExceptionIResourceStream.close()
public void close()
throws IOException
IResourceStream
close in interface Closeableclose in interface IResourceStreamIOExceptionpublic Locale getLocale()
getLocale in interface IResourceStreampublic void setLocale(Locale locale)
IResourceStream
setLocale in interface IResourceStreamlocale - The Locale where this stream did resolve to.public String getStyle()
getStyle in interface IResourceStreampublic void setStyle(String style)
IResourceStream
setStyle in interface IResourceStreamstyle - The style where this stream did resolve to.public String getVariation()
getVariation in interface IResourceStreampublic void setVariation(String variation)
IResourceStream
setVariation in interface IResourceStreamvariation - The Variation where this stream did resolve to.public Time lastModifiedTime()
IModifiable
lastModifiedTime in interface IModifiableTime or
null if that information is not available
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||