Java Code Examples for org.apache.jasper.Constants#DEFAULT_TAG_BUFFER_SIZE

The following examples show how to use org.apache.jasper.Constants#DEFAULT_TAG_BUFFER_SIZE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BodyContentImpl.java    From Tomcat7.0.67 with Apache License 2.0 5 votes vote down vote up
/**
 * Constructor.
 */
public BodyContentImpl(JspWriter enclosingWriter) {
    super(enclosingWriter);
    cb = new char[Constants.DEFAULT_TAG_BUFFER_SIZE];
    bufferSize = cb.length;
    nextChar = 0;
    closed = false;
}
 
Example 2
Source File: BodyContentImpl.java    From Tomcat7.0.67 with Apache License 2.0 5 votes vote down vote up
/**
 * Clear the contents of the buffer. If the buffer has been already
 * been flushed then the clear operation shall throw an IOException
 * to signal the fact that some data has already been irrevocably 
 * written to the client response stream.
 *
 * @throws IOException If an I/O error occurs
 */
@Override
public void clear() throws IOException {
    if (writer != null) {
        throw new IOException();
    } else {
        nextChar = 0;
        if (LIMIT_BUFFER && (cb.length > Constants.DEFAULT_TAG_BUFFER_SIZE)) {
            cb = new char[Constants.DEFAULT_TAG_BUFFER_SIZE];
            bufferSize = cb.length;
        }
    }
}
 
Example 3
Source File: BodyContentImpl.java    From tomcatsrc with Apache License 2.0 5 votes vote down vote up
/**
 * Constructor.
 */
public BodyContentImpl(JspWriter enclosingWriter) {
    super(enclosingWriter);
    cb = new char[Constants.DEFAULT_TAG_BUFFER_SIZE];
    bufferSize = cb.length;
    nextChar = 0;
    closed = false;
}
 
Example 4
Source File: BodyContentImpl.java    From tomcatsrc with Apache License 2.0 5 votes vote down vote up
/**
 * Clear the contents of the buffer. If the buffer has been already
 * been flushed then the clear operation shall throw an IOException
 * to signal the fact that some data has already been irrevocably 
 * written to the client response stream.
 *
 * @throws IOException If an I/O error occurs
 */
@Override
public void clear() throws IOException {
    if (writer != null) {
        throw new IOException();
    } else {
        nextChar = 0;
        if (LIMIT_BUFFER && (cb.length > Constants.DEFAULT_TAG_BUFFER_SIZE)) {
            cb = new char[Constants.DEFAULT_TAG_BUFFER_SIZE];
            bufferSize = cb.length;
        }
    }
}
 
Example 5
Source File: BodyContentImpl.java    From packagedrone with Eclipse Public License 1.0 5 votes vote down vote up
/**
    * Constructor.
    */
   public BodyContentImpl(JspWriter enclosingWriter) {
       super(enclosingWriter);
bufferSize = Constants.DEFAULT_TAG_BUFFER_SIZE;
cb = new char[bufferSize];
nextChar = 0;
closed = false;
   }