gnu.kawa.xml
Class HttpPrinter
- Consumer
Output as an Http response.
Used for both CGI scripts (default) and HttpServletResponse (future).
beforeContent , endAttribute , endDocument , endElement , ignoring , startAttribute , startDocument , startElement , write , write , write , write , writeBoolean , writeDouble , writeFloat , writeInt , writeLong , writeObject |
ostream
protected OutputStream ostream
sawContentType
protected String sawContentType
HttpPrinter
public HttpPrinter(OutputStream out)
HttpPrinter
public HttpPrinter(OutPort out)
addHeader
public void addHeader(String label,
String value)
append
public Consumer append(CharSequence csq)
append
public Consumer append(CharSequence csq,
int start,
int end)
beginData
public void beginData()
endAttribute
public void endAttribute()
End of an attribute or end of an actual parameter.
The former use matches a startAttribute; the latter may not,
and can be used to separate parameters in a parameter list.
This double duty suggsts the method should at least be re-named.
- endAttribute in interface Consumer
- endAttribute in interface FilterConsumer
printHeader
public void printHeader(String label,
String value)
throws java.io.IOException
printHeaders
public void printHeaders()
throws java.io.IOException