org.benow.web.path.page.stream
Interface ResultWriter
- All Known Implementing Classes:
- FileWriter, HTMLResultWriter, JDBCWriter, ObjectWriter, ResultWriterImpl, UserModuleStreamer
public interface ResultWriter
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.
write
void write(java.io.PrintWriter out,
org.w3c.dom.Element streamElem,
QueryParams params)
throws WebException,
java.io.IOException,
java.lang.Throwable
- 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
java.lang.Throwable