public ServletOutputStream getOutputStream() {
if (outStream == null) {
if (outWriter != null) {
throw new IllegalStateException("Can't call getOutputStream() after getWriter()");
}
bufferOutputStream = new FastByteArrayServletOutputStream();
outStream = bufferOutputStream;
}
return outStream;
}