org.apache.myfaces.trinidadinternal.io
Class DebugResponseWriter

java.lang.Object
  extended by java.io.Writer
      extended by javax.faces.context.ResponseWriter
          extended by org.apache.myfaces.trinidadinternal.io.ResponseWriterDecorator
              extended by org.apache.myfaces.trinidadinternal.io.DebugResponseWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class DebugResponseWriter
extends ResponseWriterDecorator

ResponseWriter that decorates another and checks for common mistakes, like unbalanced elements.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/io/DebugResponseWriter.java#0 $) $Date: 10-nov-2005.19:03:48 $
Author:
The Oracle ADF Faces Team

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
DebugResponseWriter(javax.faces.context.ResponseWriter decorated)
          Creates a DebugResponseWriter.
 
Method Summary
 javax.faces.context.ResponseWriter cloneWithWriter(java.io.Writer writer)
          Creates a new instance of this DebugResponseWriter, using a different Writer.
 void endDocument()
           
 void endElement(java.lang.String name)
           
 void startElement(java.lang.String name, javax.faces.component.UIComponent component)
           
 void write(char[] text, int start, int length)
          Writes a character array, without performing any escaping.
 void write(int ch)
          Writes a character, without performing any escaping.
 void write(java.lang.String text)
          Writes a string, without performing any escaping.
 void writeAttribute(java.lang.String name, java.lang.Object value, java.lang.String componentPropertyName)
           
 void writeComment(java.lang.Object text)
          Writes a comment.
 void writeText(char[] text, int start, int length)
          Writes a character array, escaped properly for this method.
 void writeText(java.lang.Object text, java.lang.String componentPropertyName)
          Writes a String, escaped properly for this method.
 void writeURIAttribute(java.lang.String name, java.lang.Object value, java.lang.String componentPropertyName)
           
 
Methods inherited from class org.apache.myfaces.trinidadinternal.io.ResponseWriterDecorator
close, flush, getCharacterEncoding, getContentType, getResponseWriter, startDocument, write, write
 
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

DebugResponseWriter

public DebugResponseWriter(javax.faces.context.ResponseWriter decorated)
Creates a DebugResponseWriter.

Method Detail

cloneWithWriter

public javax.faces.context.ResponseWriter cloneWithWriter(java.io.Writer writer)
Creates a new instance of this DebugResponseWriter, using a different Writer.

Overrides:
cloneWithWriter in class ResponseWriterDecorator

endDocument

public void endDocument()
                 throws java.io.IOException
Overrides:
endDocument in class ResponseWriterDecorator
Throws:
java.io.IOException

writeComment

public void writeComment(java.lang.Object text)
                  throws java.io.IOException
Writes a comment.

Overrides:
writeComment in class ResponseWriterDecorator
Throws:
java.io.IOException

writeText

public void writeText(java.lang.Object text,
                      java.lang.String componentPropertyName)
               throws java.io.IOException
Writes a String, escaped properly for this method.

Overrides:
writeText in class ResponseWriterDecorator
Throws:
java.io.IOException

writeText

public void writeText(char[] text,
                      int start,
                      int length)
               throws java.io.IOException
Writes a character array, escaped properly for this method.

Overrides:
writeText in class ResponseWriterDecorator
Throws:
java.io.IOException

write

public void write(java.lang.String text)
           throws java.io.IOException
Writes a string, without performing any escaping.

Overrides:
write in class ResponseWriterDecorator
Throws:
java.io.IOException

write

public void write(char[] text,
                  int start,
                  int length)
           throws java.io.IOException
Writes a character array, without performing any escaping.

Overrides:
write in class ResponseWriterDecorator
Throws:
java.io.IOException

write

public void write(int ch)
           throws java.io.IOException
Writes a character, without performing any escaping.

Overrides:
write in class ResponseWriterDecorator
Throws:
java.io.IOException

startElement

public void startElement(java.lang.String name,
                         javax.faces.component.UIComponent component)
                  throws java.io.IOException
Overrides:
startElement in class ResponseWriterDecorator
Throws:
java.io.IOException

endElement

public void endElement(java.lang.String name)
                throws java.io.IOException
Overrides:
endElement in class ResponseWriterDecorator
Throws:
java.io.IOException

writeAttribute

public void writeAttribute(java.lang.String name,
                           java.lang.Object value,
                           java.lang.String componentPropertyName)
                    throws java.io.IOException
Overrides:
writeAttribute in class ResponseWriterDecorator
Throws:
java.io.IOException

writeURIAttribute

public void writeURIAttribute(java.lang.String name,
                              java.lang.Object value,
                              java.lang.String componentPropertyName)
                       throws java.io.IOException
Overrides:
writeURIAttribute in class ResponseWriterDecorator
Throws:
java.io.IOException


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.