org.apache.myfaces.tobago.webapp
Class TobagoResponseWriterImpl

java.lang.Object
  extended by java.io.Writer
      extended by javax.faces.context.ResponseWriter
          extended by org.apache.myfaces.tobago.webapp.TobagoResponseWriter
              extended by org.apache.myfaces.tobago.webapp.TobagoResponseWriterImpl
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class TobagoResponseWriterImpl
extends TobagoResponseWriter


Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
TobagoResponseWriterImpl(java.io.Writer writer, java.lang.String contentType, java.lang.String characterEncoding)
           
 
Method Summary
 ResponseWriter cloneWithWriter(java.io.Writer originalWriter)
           
 void close()
           
 void endDocument()
           
 void endElement(java.lang.String name)
           
 void flush()
           
 java.lang.String getCharacterEncoding()
           
 java.lang.String getContentType()
           
 void startDocument()
           
 void startElement(java.lang.String name, UIComponent currentComponent)
           
 void write(char[] chars)
           
 void write(char[] cbuf, int off, int len)
           
 void write(int i)
           
 void write(java.lang.String string)
           
 void write(java.lang.String string, int i, int i1)
           
 void writeAttribute(java.lang.String name, java.lang.Object value, java.lang.String property)
           
 void writeAttribute(java.lang.String name, java.lang.String value, boolean escape)
          Writes a string attribute.
 void writeClassAttribute()
          Write the class attribute.
 void writeComment(java.lang.Object obj)
           
 void writeStyleAttribute()
          Write the style attribute.
 void writeText(char[] text, int offset, int length)
           
 void writeText(java.lang.Object text, java.lang.String property)
           
 void writeURIAttribute(java.lang.String s, java.lang.Object obj, java.lang.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.io.Writer
append, append, append
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TobagoResponseWriterImpl

public TobagoResponseWriterImpl(java.io.Writer writer,
                                java.lang.String contentType,
                                java.lang.String characterEncoding)
Method Detail

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 string)
           throws java.io.IOException
Specified by:
write in class TobagoResponseWriter
Throws:
java.io.IOException

write

public void write(int i)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
Throws:
java.io.IOException

write

public void write(char[] chars)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
Throws:
java.io.IOException

write

public void write(java.lang.String string,
                  int i,
                  int i1)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
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

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Specified by:
flush in class TobagoResponseWriter
Throws:
java.io.IOException

writeText

public void writeText(java.lang.Object text,
                      java.lang.String property)
               throws java.io.IOException
Specified by:
writeText in class TobagoResponseWriter
Throws:
java.io.IOException

writeText

public void writeText(char[] text,
                      int offset,
                      int length)
               throws java.io.IOException
Specified by:
writeText in class ResponseWriter
Throws:
java.io.IOException

startDocument

public void startDocument()
                   throws java.io.IOException
Specified by:
startDocument in class ResponseWriter
Throws:
java.io.IOException

endDocument

public void endDocument()
                 throws java.io.IOException
Specified by:
endDocument in class ResponseWriter
Throws:
java.io.IOException

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in class ResponseWriter

getCharacterEncoding

public java.lang.String getCharacterEncoding()
Specified by:
getCharacterEncoding in class ResponseWriter

startElement

public void startElement(java.lang.String name,
                         UIComponent currentComponent)
                  throws java.io.IOException
Specified by:
startElement in class TobagoResponseWriter
Throws:
java.io.IOException

endElement

public void endElement(java.lang.String name)
                throws java.io.IOException
Specified by:
endElement in class TobagoResponseWriter
Throws:
java.io.IOException

writeComment

public void writeComment(java.lang.Object obj)
                  throws java.io.IOException
Specified by:
writeComment in class TobagoResponseWriter
Throws:
java.io.IOException

cloneWithWriter

public ResponseWriter cloneWithWriter(java.io.Writer originalWriter)
Specified by:
cloneWithWriter in class TobagoResponseWriter

writeAttribute

public void writeAttribute(java.lang.String name,
                           java.lang.Object value,
                           java.lang.String property)
                    throws java.io.IOException
Specified by:
writeAttribute in class TobagoResponseWriter
Throws:
java.io.IOException

writeURIAttribute

public void writeURIAttribute(java.lang.String s,
                              java.lang.Object obj,
                              java.lang.String s1)
                       throws java.io.IOException
Specified by:
writeURIAttribute in class ResponseWriter
Throws:
java.io.IOException

writeAttribute

public void writeAttribute(java.lang.String name,
                           java.lang.String value,
                           boolean escape)
                    throws java.io.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:
java.io.IOException

writeClassAttribute

public void writeClassAttribute()
                         throws java.io.IOException
Description copied from class: TobagoResponseWriter
Write the class attribute. The value will not escaped.

Specified by:
writeClassAttribute in class TobagoResponseWriter
Throws:
java.io.IOException

writeStyleAttribute

public void writeStyleAttribute()
                         throws java.io.IOException
Description copied from class: TobagoResponseWriter
Write the style attribute. The value will not escaped.

Specified by:
writeStyleAttribute in class TobagoResponseWriter
Throws:
java.io.IOException


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.