bundles/org.apache.jasper.glassfish/src/org/apache/jasper/runtime/BodyContentImpl.java
public void close() throws IOException {
	if (writer != null) {
	    writer.close();
	} else {
	    cb = null;	
	    closed = true;
	}
    }
public void close() throws IOException {
	if (writer != null) {
	    writer.close();
	} else {
	    cb = null;	
	    closed = true;
	}
    }
Close the stream, flushing it first.  Once a stream has been closed,
further write() or flush() invocations will cause an IOException to be
thrown.  Closing a previously-closed stream, however, has no effect.

@throws IOException If an I/O error occurs