bundles/org.apache.jasper.glassfish/src/org/apache/jasper/runtime/JspWriterImpl.java
public void write(boolean bytesOK, byte buf[], String str)
            throws IOException {

        ensureOpen();
        if (bufferSize == 0 && bytesOK) {
            initByteOut();
            if (implementsByteWriter) {
                write(buf, 0, buf.length);
                return;
            }
        }
        write(str);
    }
public void write(boolean bytesOK, byte buf[], String str)
            throws IOException {

        ensureOpen();
        if (bufferSize == 0 && bytesOK) {
            initByteOut();
            if (implementsByteWriter) {
                write(buf, 0, buf.length);
                return;
            }
        }
        write(str);
    }
Attempt to write a String pre-encoded with the page encoding.

@param bytesOK If true, write out the byte array,
else, write out the String.
@param buf     The text encoded with the page encoding
@param str     The original text