public class Buffer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private FastByteArrayOutputStream |
bufferedStream |
private SitemeshBufferWriter |
bufferedWriter |
private java.lang.String |
encoding |
private javax.servlet.ServletOutputStream |
exposedStream |
private java.io.PrintWriter |
exposedWriter |
private PageParser |
pageParser |
private static TextEncoder |
TEXT_ENCODER |
Constructor and Description |
---|
Buffer(PageParser pageParser,
java.lang.String encoding) |
Modifier and Type | Method and Description |
---|---|
SitemeshBuffer |
getContents() |
javax.servlet.ServletOutputStream |
getOutputStream() |
java.io.PrintWriter |
getWriter() |
boolean |
isUsingStream() |
Page |
parse() |
private final PageParser pageParser
private final java.lang.String encoding
private static final TextEncoder TEXT_ENCODER
private SitemeshBufferWriter bufferedWriter
private FastByteArrayOutputStream bufferedStream
private java.io.PrintWriter exposedWriter
private javax.servlet.ServletOutputStream exposedStream
public Buffer(PageParser pageParser, java.lang.String encoding)
public SitemeshBuffer getContents() throws java.io.IOException
java.io.IOException
public Page parse() throws java.io.IOException
java.io.IOException
public java.io.PrintWriter getWriter()
public javax.servlet.ServletOutputStream getOutputStream()
public boolean isUsingStream()