Example usage for javax.servlet.jsp JspWriter DEFAULT_BUFFER

List of usage examples for javax.servlet.jsp JspWriter DEFAULT_BUFFER

Introduction

In this page you can find the example usage for javax.servlet.jsp JspWriter DEFAULT_BUFFER.

Prototype

int DEFAULT_BUFFER

To view the source code for javax.servlet.jsp JspWriter DEFAULT_BUFFER.

Click Source Link

Document

Constant indicating that the Writer is buffered and is using the implementation default buffer size.

Usage

From source file:org.apache.jasper.runtime.PageContextImpl.java

public void release() {
    out = baseOut;//from   ww w . j ava2s  .c  o m
    try {
        if (isIncluded) {
            ((JspWriterImpl) out).flushBuffer();
            // push it into the including jspWriter
        } else {
            // Old code:
            //out.flush();
            // Do not flush the buffer even if we're not included (i.e.
            // we are the main page. The servlet will flush it and close
            // the stream.
            ((JspWriterImpl) out).flushBuffer();
        }
    } catch (IOException ex) {
        log.warn("Internal error flushing the buffer in release()");
    }

    servlet = null;
    config = null;
    context = null;
    needsSession = false;
    errorPageURL = null;
    bufferSize = JspWriter.DEFAULT_BUFFER;
    autoFlush = true;
    request = null;
    response = null;
    depth = -1;
    baseOut.recycle();
    session = null;

    attributes.clear();
}

From source file:org.tinygroup.jspengine.runtime.PageContextImpl.java

public void release() {
    out = baseOut;//from ww  w.  j a  v  a2s .c om
    try {
        // Do not flush the buffer even if we're not included (i.e.
        // we are the main page. The servlet will flush it and close
        // the stream.
        ((JspWriterImpl) out).flushBuffer();
    } catch (IOException ex) {
        log.warn("Internal error flushing the buffer in release()");
    }

    servlet = null;
    config = null;
    context = null;
    elContext = null;
    elResolver = null;
    jspApplicationContext = null;
    needsSession = false;
    errorPageURL = null;
    bufferSize = JspWriter.DEFAULT_BUFFER;
    request = null;
    response = null;
    depth = -1;
    baseOut.recycle();
    session = null;

    attributes.clear();
}