Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.ui.io
Class DebugOutputMethod

java.lang.Object
  |
  +--oracle.cabo.ui.io.WrappingOutputMethod
        |
        +--oracle.cabo.ui.io.DebugOutputMethod
All Implemented Interfaces:
CloneWithPrintWriter, OutputMethod

public class DebugOutputMethod
extends WrappingOutputMethod

Output method that wraps another and checks for common mistakes, like unbalanced elements.


Constructor Summary
DebugOutputMethod(OutputMethod wrapped)
          Creates a DebugOutputMethod.
DebugOutputMethod(OutputMethod wrapped, ErrorLog log)
          Creates a DebugOutputMethod.
 
Method Summary
 OutputMethod cloneWithPrintWriter(java.io.PrintWriter writer)
          Creates a new instance of this DebugOutputMethod, using a different PrintWriter.
 void endDocument()
          Outputs whatever text should end a document.
 void endElement(java.lang.String name)
          Outputs an end element tag.
 void startElement(java.lang.String name)
          Outputs a start element tag.
 void writeAttribute(java.lang.String name, java.lang.Object value)
          Writes an attribute with the given name and value.
 void writeAttribute(java.lang.String name, java.lang.String value, java.lang.String value2)
          Writes an attribute with the given name and two string values.
 void writeComment(java.lang.String text)
          Writes a comment.
 void writeRawText(char text)
          Writes a character, without performing any escaping.
 void writeRawText(char[] text, int start, int length)
          Writes a character array, without performing any escaping.
 void writeRawText(java.lang.String text)
          Writes a string, without performing any escaping.
 void writeText(char text)
          Writes a character, escaped properly for this method.
 void writeText(char[] text, int start, int length)
          Writes a character array, escaped properly for this method.
 void writeText(java.lang.Object text)
          Writes an Object, escaped properly for this method.
 void writeText(java.lang.String text)
          Writes a String, escaped properly for this method.
 void writeURIAttribute(java.lang.String name, java.lang.Object value)
          Writes a URI attribute with the given name and value, based on It is an error to call this method if the previous call to the output method was not either startElement() or another writeAttribute.
 
Methods inherited from class oracle.cabo.ui.io.WrappingOutputMethod
cloneWrappedOutputMethod, flush, getContentType, startDocument, supportsCloneWithPrintWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugOutputMethod

public DebugOutputMethod(OutputMethod wrapped)
Creates a DebugOutputMethod.

DebugOutputMethod

public DebugOutputMethod(OutputMethod wrapped,
                         ErrorLog log)
Creates a DebugOutputMethod.
Method Detail

cloneWithPrintWriter

public OutputMethod cloneWithPrintWriter(java.io.PrintWriter writer)
Creates a new instance of this DebugOutputMethod, using a different PrintWriter.
Overrides:
cloneWithPrintWriter in class WrappingOutputMethod

endDocument

public void endDocument()
                 throws java.io.IOException
Description copied from interface: OutputMethod
Outputs whatever text should end a document.
Overrides:
endDocument in class WrappingOutputMethod

writeComment

public void writeComment(java.lang.String text)
                  throws java.io.IOException
Writes a comment.
Overrides:
writeComment in class WrappingOutputMethod

writeText

public void writeText(java.lang.String text)
               throws java.io.IOException
Writes a String, escaped properly for this method.
Overrides:
writeText in class WrappingOutputMethod

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 WrappingOutputMethod

writeText

public void writeText(char text)
               throws java.io.IOException
Writes a character, escaped properly for this method.
Overrides:
writeText in class WrappingOutputMethod

writeText

public void writeText(java.lang.Object text)
               throws java.io.IOException
Writes an Object, escaped properly for this method.
Overrides:
writeText in class WrappingOutputMethod

writeRawText

public void writeRawText(java.lang.String text)
                  throws java.io.IOException
Writes a string, without performing any escaping.
Overrides:
writeRawText in class WrappingOutputMethod

writeRawText

public void writeRawText(char[] text,
                         int start,
                         int length)
                  throws java.io.IOException
Writes a character array, without performing any escaping.
Overrides:
writeRawText in class WrappingOutputMethod

writeRawText

public void writeRawText(char text)
                  throws java.io.IOException
Writes a character, without performing any escaping.
Overrides:
writeRawText in class WrappingOutputMethod

startElement

public void startElement(java.lang.String name)
                  throws java.io.IOException
Description copied from interface: OutputMethod
Outputs a start element tag. Once this method has been alled, clients can begin calling writeAttribute().
Overrides:
startElement in class WrappingOutputMethod

endElement

public void endElement(java.lang.String name)
                throws java.io.IOException
Description copied from interface: OutputMethod
Outputs an end element tag. This should be called once all the contents of the element have been renderered - it is not used to close the start-element-tag.
Overrides:
endElement in class WrappingOutputMethod

writeAttribute

public void writeAttribute(java.lang.String name,
                           java.lang.Object value)
                    throws java.io.IOException
Description copied from interface: OutputMethod
Writes an attribute with the given name and value. It is an error to call this method if the previous call to the output method was not either startElement() or another writeAttribute.
Overrides:
writeAttribute in class WrappingOutputMethod

writeAttribute

public void writeAttribute(java.lang.String name,
                           java.lang.String value,
                           java.lang.String value2)
                    throws java.io.IOException
Description copied from interface: OutputMethod
Writes an attribute with the given name and two string values. It is an error to call this method if the previous call to the output method was not either startElement() or another writeAttribute.
Overrides:
writeAttribute in class WrappingOutputMethod

writeURIAttribute

public void writeURIAttribute(java.lang.String name,
                              java.lang.Object value)
                       throws java.io.IOException
Description copied from class: WrappingOutputMethod
Writes a URI attribute with the given name and value, based on It is an error to call this method if the previous call to the output method was not either startElement() or another writeAttribute.
Overrides:
writeURIAttribute in class WrappingOutputMethod

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.