Package org.apache.wicket.util.resource
Interface IResourceStreamWriter
-
- All Superinterfaces:
AutoCloseable
,Closeable
,IClusterable
,IModifiable
,IResourceStream
,Serializable
- All Known Implementing Classes:
AbstractResourceStreamWriter
,ExportToolbar.DataExportResourceStreamWriter
public interface IResourceStreamWriter extends IResourceStream
Special IResourceStream implementation that a Resource can return when it directly wants to write to an output stream instead of return theIResourceStream.getInputStream()
. That one can return null for a IResourceStreamWriter. This behavior comes in use when the resource is generated on the fly and should be streamed directly to the client so that it won't be buffered completely if the generated resource is really big.- Author:
- jcompagner
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
write(OutputStream output)
Implement this method to write the resource data directly the the givenOutputStream
.-
Methods inherited from interface org.apache.wicket.util.watch.IModifiable
lastModifiedTime
-
Methods inherited from interface org.apache.wicket.util.resource.IResourceStream
close, getContentType, getInputStream, getLocale, getStyle, getVariation, length, setLocale, setStyle, setVariation
-
-
-
-
Method Detail
-
write
void write(OutputStream output) throws IOException
Implement this method to write the resource data directly the the givenOutputStream
.- Parameters:
output
- The response where the resource can write its content into.- Throws:
IOException
-
-