|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.ui.io.XMLOutputMethod
Implementation of OutputMethod for outputting XHTML.
Constructor Summary | |
XMLOutputMethod(java.io.PrintWriter out)
Creates an XMLOutputMethod. |
|
XMLOutputMethod(java.io.PrintWriter out,
java.lang.String encoding)
Creates an XMLOutputMethod. |
Method Summary | |
OutputMethod |
cloneWithPrintWriter(java.io.PrintWriter writer)
Creates a new instance of this OutputMethod, using a different PritnWriter. |
void |
endDocument()
Outputs whatever text should end a document. |
void |
endElement(java.lang.String name)
Outputs text for the end of an element. |
void |
flush()
Flushes any ouput buffered by the output method to the underlying PrintWriter or OutputStream. |
java.lang.String |
getContentType()
Returns the MIME content type for this output method. |
java.lang.String |
getEncoding()
Returns the encoding specified for this HTMLOutputMethod |
protected java.io.PrintWriter |
getPrintWriter()
Returns the PrintWriter to write to. |
void |
startDocument()
Outputs the start of a document. |
void |
startElement(java.lang.String name)
Outputs the text for the start of an element. |
boolean |
supportsCloneWithPrintWriter()
Returns true if the OutputMethod supports cloning the OutputMethod with a different PrintWriter |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLOutputMethod(java.io.PrintWriter out)
out
- a PrintWriter to write topublic XMLOutputMethod(java.io.PrintWriter out, java.lang.String encoding) throws java.io.UnsupportedEncodingException
out
- a PrintWriter to write toencoding
- the character encoding the PrintWriter usesMethod Detail |
public boolean supportsCloneWithPrintWriter()
supportsCloneWithPrintWriter
in interface CloneWithPrintWriter
public OutputMethod cloneWithPrintWriter(java.io.PrintWriter writer)
cloneWithPrintWriter
in interface CloneWithPrintWriter
public java.lang.String getContentType()
getContentType
in interface OutputMethod
public java.lang.String getEncoding()
public void startDocument() throws java.io.IOException
startDocument
in interface OutputMethod
public void endDocument() throws java.io.IOException
OutputMethod
endDocument
in interface OutputMethod
public void flush() throws java.io.IOException
flush
in interface OutputMethod
public void writeComment(java.lang.String text) throws java.io.IOException
writeComment
in interface OutputMethod
public void writeText(java.lang.String text) throws java.io.IOException
writeText
in interface OutputMethod
public void writeText(char[] text, int start, int length) throws java.io.IOException
writeText
in interface OutputMethod
public void writeText(java.lang.Object text) throws java.io.IOException
writeText
in interface OutputMethod
public void writeText(char text) throws java.io.IOException
writeText
in interface OutputMethod
public void writeRawText(java.lang.String text) throws java.io.IOException
writeRawText
in interface OutputMethod
public void writeRawText(char[] text, int start, int length) throws java.io.IOException
writeRawText
in interface OutputMethod
public void writeRawText(char text) throws java.io.IOException
writeRawText
in interface OutputMethod
public void startElement(java.lang.String name)
startElement
in interface OutputMethod
public void endElement(java.lang.String name)
endElement
in interface OutputMethod
public void writeAttribute(java.lang.String name, java.lang.String value, java.lang.String value2) throws java.io.IOException
OutputMethod
startElement()
or another writeAttribute
.writeAttribute
in interface OutputMethod
public void writeAttribute(java.lang.String name, java.lang.Object value) throws java.io.IOException
OutputMethod
startElement()
or another writeAttribute
.writeAttribute
in interface OutputMethod
public void writeURIAttribute(java.lang.String name, java.lang.Object value) throws java.io.IOException
OutputMethod
startElement()
or another writeAttribute
.writeURIAttribute
in interface OutputMethod
protected final java.io.PrintWriter getPrintWriter()
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |