private void createOutput() {
if (bufferedOutput == null) {
setHeader("Date", GMT_FORMAT.format(new Date()));
setHeader("Connection", request.isKeepAlive() ? "keep-alive"
: "close");
bufferedOutput = new NetBufferedOutputStream(request.session,
bufferSize, request.isKeepAlive());
out = request.isChunked() ? new ChunkedOutputStream(bufferSize,
bufferedOutput, request, this) : new HttpServerOutpuStream(
bufferSize, bufferedOutput, request, this);
fileOut = new StaticFileOutputStream(bufferSize, bufferedOutput,