Package com.webmethods.caf.faces.context
Class PrettyPrintingResponseWriter
java.lang.Object
java.io.Writer
javax.faces.context.ResponseWriter
com.webmethods.caf.faces.context.PrettyPrintingResponseWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
Filter that tidies underlying markup.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
protected boolean
protected boolean
protected ResponseWriter
protected static final char[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncloneWithWriter
(Writer writer) void
close()
protected static char[]
void
void
endElement
(String name) void
flush()
void
void
startElement
(String name, UIComponent component) void
write
(char[] cbuf) void
write
(char[] cbuf, int off, int len) void
write
(int c) void
void
void
writeAttribute
(String name, Object value, String property) void
writeComment
(Object comment) void
writeText
(char[] text, int off, int len) void
void
writeURIAttribute
(String name, Object value, String property) Methods inherited from class javax.faces.context.ResponseWriter
endCDATA, startCDATA, writeDoctype, writePreamble, writeText
Methods inherited from class java.io.Writer
append, append, append, nullWriter
-
Field Details
-
INIT_PARAM_PRETTY_PRINT
- See Also:
-
TABS
protected static final char[] TABS -
m_empty
protected boolean m_empty -
m_leaf
protected boolean m_leaf -
m_stack
-
m_writer
-
-
Constructor Details
-
PrettyPrintingResponseWriter
-
-
Method Details
-
createTabs
protected static char[] createTabs() -
cloneWithWriter
- Specified by:
cloneWithWriter
in classResponseWriter
-
endDocument
- Specified by:
endDocument
in classResponseWriter
- Throws:
IOException
-
endElement
- Specified by:
endElement
in classResponseWriter
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classResponseWriter
- Throws:
IOException
-
getCharacterEncoding
- Specified by:
getCharacterEncoding
in classResponseWriter
-
getContentType
- Specified by:
getContentType
in classResponseWriter
-
startDocument
- Specified by:
startDocument
in classResponseWriter
- Throws:
IOException
-
startElement
- Specified by:
startElement
in classResponseWriter
- Throws:
IOException
-
writeAttribute
- Specified by:
writeAttribute
in classResponseWriter
- Throws:
IOException
-
writeComment
- Specified by:
writeComment
in classResponseWriter
- Throws:
IOException
-
writeText
- Specified by:
writeText
in classResponseWriter
- Throws:
IOException
-
writeText
- Specified by:
writeText
in classResponseWriter
- Throws:
IOException
-
writeURIAttribute
- Specified by:
writeURIAttribute
in classResponseWriter
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
write
- Specified by:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-