public class PrettyPrintingResponseWriter extends ResponseWriter
Modifier and Type | Field and Description |
---|---|
static String |
INIT_PARAM_PRETTY_PRINT |
protected boolean |
m_empty |
protected boolean |
m_leaf |
protected List<String> |
m_stack |
protected ResponseWriter |
m_writer |
protected static char[] |
TABS |
Constructor and Description |
---|
PrettyPrintingResponseWriter(ResponseWriter writer) |
Modifier and Type | Method and Description |
---|---|
ResponseWriter |
cloneWithWriter(Writer writer) |
void |
close() |
protected static char[] |
createTabs() |
void |
endDocument() |
void |
endElement(String name) |
void |
flush() |
String |
getCharacterEncoding() |
String |
getContentType() |
void |
startDocument() |
void |
startElement(String name,
UIComponent component) |
void |
write(char[] cbuf) |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
void |
write(String str) |
void |
write(String str,
int off,
int len) |
void |
writeAttribute(String name,
Object value,
String property) |
void |
writeComment(Object comment) |
void |
writeText(char[] text,
int off,
int len) |
void |
writeText(Object text,
String property) |
void |
writeURIAttribute(String name,
Object value,
String property) |
endCDATA, startCDATA, writeDoctype, writePreamble, writeText
public static final String INIT_PARAM_PRETTY_PRINT
protected static final char[] TABS
protected boolean m_empty
protected boolean m_leaf
protected ResponseWriter m_writer
public PrettyPrintingResponseWriter(ResponseWriter writer)
protected static char[] createTabs()
public ResponseWriter cloneWithWriter(Writer writer)
cloneWithWriter
in class ResponseWriter
public void endDocument() throws IOException
endDocument
in class ResponseWriter
IOException
public void endElement(String name) throws IOException
endElement
in class ResponseWriter
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class ResponseWriter
IOException
public String getCharacterEncoding()
getCharacterEncoding
in class ResponseWriter
public String getContentType()
getContentType
in class ResponseWriter
public void startDocument() throws IOException
startDocument
in class ResponseWriter
IOException
public void startElement(String name, UIComponent component) throws IOException
startElement
in class ResponseWriter
IOException
public void writeAttribute(String name, Object value, String property) throws IOException
writeAttribute
in class ResponseWriter
IOException
public void writeComment(Object comment) throws IOException
writeComment
in class ResponseWriter
IOException
public void writeText(char[] text, int off, int len) throws IOException
writeText
in class ResponseWriter
IOException
public void writeText(Object text, String property) throws IOException
writeText
in class ResponseWriter
IOException
public void writeURIAttribute(String name, Object value, String property) throws IOException
writeURIAttribute
in class ResponseWriter
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Writer
IOException
public void write(char[] cbuf, int off, int len) throws IOException
write
in class Writer
IOException
public void write(char[] cbuf) throws IOException
write
in class Writer
IOException
public void write(int c) throws IOException
write
in class Writer
IOException
public void write(String str, int off, int len) throws IOException
write
in class Writer
IOException
public void write(String str) throws IOException
write
in class Writer
IOException