public void start()
{
if (_os != null || _writer != null)
throw new IllegalStateException();
ServletResponse next = _response.getResponse();
if (next == null)
throw new NullPointerException();
if (next instanceof CauchoResponse) {
CauchoResponse cNext = (CauchoResponse) next;
if (cNext.isCauchoResponseStream())
_stream = cNext.getResponseStream();
}
_isCommitted = false;
_headerKeys.clear();
_headerValues.clear();
super.start();
// server/053n
try {
setEncoding(next.getCharacterEncoding());
} catch (Exception e) {
log.log(Level.WARNING, e.toString(), e);
}
}