gnu.kawa.xml
Class HttpPrinter
public
class
HttpPrinter
extends FilterConsumer
Output as an Http response.
Used for both CGI scripts (default) and HttpServletResponse (future).
protected OutputStream ostream
protected String sawContentType
public HttpPrinter(OutputStream out)
public void addHeader(String label, String value)
public
Consumer append(CharSequence csq, int start, int end)
public
Consumer append(CharSequence csq)
public void beginData()
public void endAttribute()
public void endDocument()
public void endElement()
public void printHeader(String label, String value)
public void printHeaders()
public void startAttribute(Object attrType)
public void startDocument()
public void startElement(Object type)
public void write(char[] buf, int off, int len)
public void writeObject(Object v)