org.apache.myfaces.trinidadinternal.io
Class XhtmlResponseWriter
java.lang.Object
java.io.Writer
javax.faces.context.ResponseWriter
org.apache.myfaces.trinidadinternal.io.XhtmlResponseWriter
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable, java.lang.Appendable
public class XhtmlResponseWriter
- extends javax.faces.context.ResponseWriter
Implementation of ResponseWriter for outputting XHTML.
| Fields inherited from class java.io.Writer |
lock |
|
Constructor Summary |
XhtmlResponseWriter(java.io.Writer out,
java.lang.String contentType,
java.lang.String encoding)
Creates an XhtmlResponseWriter. |
|
Method Summary |
javax.faces.context.ResponseWriter |
cloneWithWriter(java.io.Writer writer)
|
void |
close()
|
void |
endCDATA()
Writes out an end CDATA element. |
void |
endDocument()
|
void |
endElement(java.lang.String name)
|
void |
flush()
|
java.lang.String |
getCharacterEncoding()
|
java.lang.String |
getContentType()
|
void |
startCDATA()
Writes out CDATA start. |
void |
startDocument()
|
void |
startElement(java.lang.String name,
javax.faces.component.UIComponent component)
|
void |
write(char[] cbuf,
int off,
int len)
|
void |
write(int c)
|
void |
write(java.lang.String str)
|
void |
writeAttribute(java.lang.String name,
java.lang.Object value,
java.lang.String componentPropertyName)
|
void |
writeComment(java.lang.Object comment)
|
void |
writeText(char[] text,
int off,
int len)
|
void |
writeText(java.lang.Object text,
java.lang.String componentPropertyName)
|
void |
writeURIAttribute(java.lang.String name,
java.lang.Object value,
java.lang.String componentPropertyName)
|
| Methods inherited from class javax.faces.context.ResponseWriter |
writeText |
| Methods inherited from class java.io.Writer |
append, append, append, write, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XHTML_CONTENT_TYPE
public static final java.lang.String XHTML_CONTENT_TYPE
- See Also:
- Constant Field Values
XhtmlResponseWriter
public XhtmlResponseWriter(java.io.Writer out,
java.lang.String contentType,
java.lang.String encoding)
throws java.io.UnsupportedEncodingException
- Creates an XhtmlResponseWriter.
- Parameters:
out - a Writer to write tocontentType - the xhtml content typeencoding - the character encoding the Writer uses
- Throws:
java.io.UnsupportedEncodingException
getCharacterEncoding
public java.lang.String getCharacterEncoding()
- Specified by:
getCharacterEncoding in class javax.faces.context.ResponseWriter
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType in class javax.faces.context.ResponseWriter
startDocument
public void startDocument()
throws java.io.IOException
- Specified by:
startDocument in class javax.faces.context.ResponseWriter
- Throws:
java.io.IOException
endDocument
public void endDocument()
throws java.io.IOException
- Specified by:
endDocument in class javax.faces.context.ResponseWriter
- Throws:
java.io.IOException
startCDATA
public void startCDATA()
throws java.io.IOException
- Writes out CDATA start.
- Overrides:
startCDATA in class javax.faces.context.ResponseWriter
- Throws:
java.io.IOException - on any read/write error
endCDATA
public void endCDATA()
throws java.io.IOException
- Writes out an end CDATA element.
- Overrides:
endCDATA in class javax.faces.context.ResponseWriter
- Throws:
java.io.IOException - on any read/write error
flush
public void flush()
throws java.io.IOException
- Specified by:
flush in interface java.io.Flushable- Specified by:
flush in class javax.faces.context.ResponseWriter
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close in interface java.io.Closeable- Specified by:
close in class java.io.Writer
- Throws:
java.io.IOException
startElement
public void startElement(java.lang.String name,
javax.faces.component.UIComponent component)
throws java.io.IOException
- Specified by:
startElement in class javax.faces.context.ResponseWriter
- Throws:
java.io.IOException
endElement
public void endElement(java.lang.String name)
throws java.io.IOException
- Specified by:
endElement in class javax.faces.context.ResponseWriter
- Throws:
java.io.IOException
writeAttribute
public void writeAttribute(java.lang.String name,
java.lang.Object value,
java.lang.String componentPropertyName)
throws java.io.IOException
- Specified by:
writeAttribute in class javax.faces.context.ResponseWriter
- Throws:
java.io.IOException
writeURIAttribute
public void writeURIAttribute(java.lang.String name,
java.lang.Object value,
java.lang.String componentPropertyName)
throws java.io.IOException
- Specified by:
writeURIAttribute in class javax.faces.context.ResponseWriter
- Throws:
java.io.IOException
writeComment
public void writeComment(java.lang.Object comment)
throws java.io.IOException
- Specified by:
writeComment in class javax.faces.context.ResponseWriter
- Throws:
java.io.IOException
writeText
public void writeText(java.lang.Object text,
java.lang.String componentPropertyName)
throws java.io.IOException
- Specified by:
writeText in class javax.faces.context.ResponseWriter
- Throws:
java.io.IOException
writeText
public void writeText(char[] text,
int off,
int len)
throws java.io.IOException
- Specified by:
writeText in class javax.faces.context.ResponseWriter
- Throws:
java.io.IOException
write
public void write(char[] cbuf,
int off,
int len)
throws java.io.IOException
- Specified by:
write in class java.io.Writer
- Throws:
java.io.IOException
write
public void write(java.lang.String str)
throws java.io.IOException
- Overrides:
write in class java.io.Writer
- Throws:
java.io.IOException
write
public void write(int c)
throws java.io.IOException
- Overrides:
write in class java.io.Writer
- Throws:
java.io.IOException
cloneWithWriter
public javax.faces.context.ResponseWriter cloneWithWriter(java.io.Writer writer)
- Specified by:
cloneWithWriter in class javax.faces.context.ResponseWriter
Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.