org.apache.myfaces.tobago.webapp
Class TobagoResponseWriterImpl
java.lang.Object
java.io.Writer
javax.faces.context.ResponseWriter
org.apache.myfaces.tobago.webapp.TobagoResponseWriter
org.apache.myfaces.tobago.webapp.TobagoResponseWriterImpl
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public class TobagoResponseWriterImpl
- extends TobagoResponseWriter
Method Summary |
ResponseWriter |
cloneWithWriter(Writer originalWriter)
|
void |
close()
|
void |
endDocument()
|
void |
endElement(String name)
|
void |
flush()
|
String |
getCharacterEncoding()
|
String |
getContentType()
|
void |
startDocument()
|
void |
startElement(String name,
UIComponent currentComponent)
|
void |
write(char[] chars)
|
void |
write(char[] cbuf,
int off,
int len)
|
void |
write(int i)
|
void |
write(String string)
|
void |
write(String string,
int i,
int i1)
|
void |
writeAttribute(String name,
Object value,
String property)
|
void |
writeAttribute(String name,
String value,
boolean escape)
Writes a string attribute. |
void |
writeClassAttribute()
Write the class attribute. |
void |
writeComment(Object obj)
|
void |
writeStyleAttribute()
Write the style attribute. |
void |
writeText(char[] text,
int offset,
int length)
|
void |
writeText(Object text,
String property)
|
void |
writeURIAttribute(String s,
Object obj,
String s1)
|
Methods inherited from class org.apache.myfaces.tobago.webapp.TobagoResponseWriter |
getContentTypeWithCharSet, startElement, writeAttribute, writeAttribute, writeAttributeFromComponent, writeClassAttribute, writeClassAttribute, writeIdAttribute, writeJavascript, writeNameAttribute, writeStyleAttribute, writeStyleAttribute, writeText, writeTextFromComponent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TobagoResponseWriterImpl
public TobagoResponseWriterImpl(Writer writer,
String contentType,
String characterEncoding)
write
public void write(char[] cbuf,
int off,
int len)
throws IOException
- Specified by:
write
in class Writer
- Throws:
IOException
write
public void write(String string)
throws IOException
- Specified by:
write
in class TobagoResponseWriter
- Throws:
IOException
write
public void write(int i)
throws IOException
- Overrides:
write
in class Writer
- Throws:
IOException
write
public void write(char[] chars)
throws IOException
- Overrides:
write
in class Writer
- Throws:
IOException
write
public void write(String string,
int i,
int i1)
throws IOException
- Overrides:
write
in class Writer
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Specified by:
close
in class Writer
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush
in interface Flushable
- Specified by:
flush
in class TobagoResponseWriter
- Throws:
IOException
writeText
public void writeText(Object text,
String property)
throws IOException
- Specified by:
writeText
in class TobagoResponseWriter
- Throws:
IOException
writeText
public void writeText(char[] text,
int offset,
int length)
throws IOException
- Specified by:
writeText
in class ResponseWriter
- Throws:
IOException
startDocument
public void startDocument()
throws IOException
- Specified by:
startDocument
in class ResponseWriter
- Throws:
IOException
endDocument
public void endDocument()
throws IOException
- Specified by:
endDocument
in class ResponseWriter
- Throws:
IOException
getContentType
public String getContentType()
- Specified by:
getContentType
in class ResponseWriter
getCharacterEncoding
public String getCharacterEncoding()
- Specified by:
getCharacterEncoding
in class ResponseWriter
startElement
public void startElement(String name,
UIComponent currentComponent)
throws IOException
- Specified by:
startElement
in class TobagoResponseWriter
- Throws:
IOException
endElement
public void endElement(String name)
throws IOException
- Specified by:
endElement
in class TobagoResponseWriter
- Throws:
IOException
writeComment
public void writeComment(Object obj)
throws IOException
- Specified by:
writeComment
in class TobagoResponseWriter
- Throws:
IOException
cloneWithWriter
public ResponseWriter cloneWithWriter(Writer originalWriter)
- Specified by:
cloneWithWriter
in class TobagoResponseWriter
writeAttribute
public void writeAttribute(String name,
Object value,
String property)
throws IOException
- Specified by:
writeAttribute
in class TobagoResponseWriter
- Throws:
IOException
writeURIAttribute
public void writeURIAttribute(String s,
Object obj,
String s1)
throws IOException
- Specified by:
writeURIAttribute
in class ResponseWriter
- Throws:
IOException
writeAttribute
public void writeAttribute(String name,
String value,
boolean escape)
throws IOException
- Description copied from class:
TobagoResponseWriter
- Writes a string attribute. The renderer may set escape=false to switch of escaping of the string,
if it is not necessary.
- Specified by:
writeAttribute
in class TobagoResponseWriter
- Throws:
IOException
writeClassAttribute
public void writeClassAttribute()
throws IOException
- Description copied from class:
TobagoResponseWriter
- Write the class attribute. The value will not escaped.
- Specified by:
writeClassAttribute
in class TobagoResponseWriter
- Throws:
IOException
writeStyleAttribute
public void writeStyleAttribute()
throws IOException
- Description copied from class:
TobagoResponseWriter
- Write the style attribute. The value will not escaped.
- Specified by:
writeStyleAttribute
in class TobagoResponseWriter
- Throws:
IOException
Copyright © 2002-2008 Apache Software Foundation. All Rights Reserved.