org.benow.log
Class HTMLResultWriter

java.lang.Object
  extended by org.benow.log.HTMLResultWriter
All Implemented Interfaces:
ResultWriter

public class HTMLResultWriter
extends java.lang.Object
implements ResultWriter


Constructor Summary
HTMLResultWriter(java.io.BufferedReader in)
           
 
Method Summary
 java.lang.String getContentType()
           
 java.lang.String getFilename()
           
 void write(java.io.PrintWriter out, org.w3c.dom.Element streamElem, QueryParams params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLResultWriter

public HTMLResultWriter(java.io.BufferedReader in)
Method Detail

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface ResultWriter
Returns:
the content type of the content to be streamed

getFilename

public java.lang.String getFilename()
Specified by:
getFilename in interface ResultWriter
Returns:
the suggested filename for the stream when saved, if exists.

write

public void write(java.io.PrintWriter out,
                  org.w3c.dom.Element streamElem,
                  QueryParams params)
           throws WebException,
                  java.io.IOException
Specified by:
write in interface ResultWriter
Parameters:
out - where to stream to
streamElem - input stream element that may hold param for stream procedure
params - params at time of stream
Throws:
WebException - if something goes wrong
java.io.IOException