org.apache.myfaces.trinidadinternal.io
Class IndentingResponseWriter

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

public class IndentingResponseWriter
extends ResponseWriterDecorator

Output method that decorates another to pretty-print HTML.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/io/IndentingResponseWriter.java#0 $) $Date: 10-nov-2005.19:03:49 $

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

Constructor Detail

IndentingResponseWriter

public IndentingResponseWriter(javax.faces.context.ResponseWriter decorated)

IndentingResponseWriter

public IndentingResponseWriter(javax.faces.context.ResponseWriter decorated,
                               int spacesPerLevel)
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 javax.faces.context.ResponseWriterWrapper

startElement

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

endElement

public void endElement(java.lang.String name)
                throws java.io.IOException
Overrides:
endElement in class javax.faces.context.ResponseWriterWrapper
Throws:
java.io.IOException

writeComment

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

Overrides:
writeComment in class javax.faces.context.ResponseWriterWrapper
Throws:
java.io.IOException

writeText

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

Overrides:
writeText in class javax.faces.context.ResponseWriterWrapper
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 javax.faces.context.ResponseWriterWrapper
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 javax.faces.context.ResponseWriterWrapper
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 java.io.Writer
Throws:
java.io.IOException

write

public void write(java.lang.String str,
                  int off,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
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 javax.faces.context.ResponseWriterWrapper
Throws:
java.io.IOException

write

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

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

write

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

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


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.