org.benow.web.path.page.stream
Interface ResultStreamer
- All Known Implementing Classes:
- StreamStreamer
public interface ResultStreamer
Classes which implement this interface are constructed and called directly when specified with a stream tag. Output
should be directed to the writer and is delivered immediately.
- Author:
- andy
getContentType
java.lang.String getContentType()
- Returns:
- the content type of the content to be streamed
getFilename
java.lang.String getFilename()
- Returns:
- the suggested filename for the stream when saved, if exists.
stream
void stream(java.io.OutputStream out,
org.w3c.dom.Element streamElem,
QueryParams params)
throws WebException,
java.io.IOException
- Parameters:
out - where to stream tostreamElem - input stream element that may hold param for stream procedureparams - params at time of stream
- Throws:
WebException - if something goes wrong
java.io.IOException