public interface IResourceStreamWriter extends IResourceStream
IResourceStream.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.Modifier and Type | Method and Description |
---|---|
void |
write(OutputStream output)
Implement this method to write the resource data directly the the given
OutputStream . |
close, getContentType, getInputStream, getLocale, getStyle, getVariation, length, setLocale, setStyle, setVariation
lastModifiedTime
void write(OutputStream output) throws IOException
OutputStream
.output
- The response where the resource can write its content into.IOException
Copyright © 2006–2021 Apache Software Foundation. All rights reserved.