|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IResourceStream
Interface to a streamed resource. The resource stream can be retrieved by calling getInputStream(), but the resource should later be closed by calling close() on the IResourceStream (as opposed to calling close on the InputStream returned by getInputStream()).
Once a resource has been closed with a call to close(), it is normally possible to call getInputStream() again to retrieve a new input stream on the same resource.
Implementations of this interface are typically unsafe for use from multiple threads.
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. |
java.util.Locale |
getLocale()
|
java.lang.String |
getStyle()
|
java.lang.String |
getVariation()
|
Bytes |
length()
Gets the size of this resource |
void |
setLocale(java.util.Locale locale)
This method shouldn't be used from the outside. |
void |
setStyle(java.lang.String style)
This method shouldn't be used from the outside. |
void |
setVariation(java.lang.String variation)
This method shouldn't be used from the outside. |
Methods inherited from interface org.apache.wicket.util.watch.IModifiable |
---|
lastModifiedTime |
Method Detail |
---|
java.lang.String getContentType()
ResourceStreamRequestHandler
handle the Content-Type automaticallyWebResponse#detectContentType(org.apache.wicket.RequestCycle, String)
Bytes length()
null
if unknownjava.io.InputStream getInputStream() throws ResourceStreamNotFoundException
ResourceStreamNotFoundException
close()
void close() throws java.io.IOException
close
in interface java.io.Closeable
java.io.IOException
java.util.Locale getLocale()
void setLocale(java.util.Locale locale)
locale
- The Locale where this stream did resolve to.java.lang.String getStyle()
void setStyle(java.lang.String style)
style
- The style where this stream did resolve to.java.lang.String getVariation()
void setVariation(java.lang.String variation)
variation
- The Variation where this stream did resolve to.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |