public class Buffer
extends java.lang.Object
PrintWriter
and ServletOutputStream
of servlet response.
Uses fast char array writter
and
byte output stream
.Modifier and Type | Field and Description |
---|---|
protected FastCharArrayWriter |
bufferedWriter |
protected FastByteArrayServletOutputStream |
bufferOutputStream |
protected javax.servlet.ServletOutputStream |
outStream |
protected java.io.PrintWriter |
outWriter |
Constructor and Description |
---|
Buffer() |
Modifier and Type | Method and Description |
---|---|
javax.servlet.ServletOutputStream |
getOutputStream()
Returns a servlet output stream.
|
java.io.PrintWriter |
getWriter()
Returns a writer.
|
boolean |
isUsingStream()
Returns
true if streams are using. |
byte[] |
toByteArray()
Returns buffered servlet output content as byte array.
|
char[] |
toCharArray()
Returns buffered writer content as char array.
|
protected FastCharArrayWriter bufferedWriter
protected FastByteArrayServletOutputStream bufferOutputStream
protected java.io.PrintWriter outWriter
protected javax.servlet.ServletOutputStream outStream
public java.io.PrintWriter getWriter()
public javax.servlet.ServletOutputStream getOutputStream()
public boolean isUsingStream()
true
if streams are using.public char[] toCharArray()
null
if writer is not used.public byte[] toByteArray()
null
if writer is not used.Copyright © 2003-present Jodd Team