|
Oracle® XML Java API Reference 10g Release 1 (10.1) B12024-02 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--oracle.xml.parser.v2.XMLOutputStream
XMLOutputSteam -- writes output stream, can handle XML encoding
| Field Summary | |
static int |
COMPACT |
static int |
DEFAULT |
static int |
PRETTY |
| Constructor Summary | |
XMLOutputStream(java.io.OutputStream out)Builds the ASCII output stream | |
XMLOutputStream(java.io.PrintWriter out)Builds the output stream from PrintWriter | |
XMLOutputStream(java.io.Writer out)Builds the output stream from PrintWriter | |
| Method Summary | |
void |
addIndent(int offset)Set indenting level for output |
void |
close()Closes the output stream |
void |
flush()Flushes the output stream |
int |
getOutputStyle()Gets the Current output style |
void |
setEncoding(java.lang.String encoding, boolean lendian, boolean byteOrderMark)Sets the output character encoding |
void |
setEOLChars(java.lang.String nl)Set Newline charachters |
void |
setOutputStyle(int style)Sets the Output the style |
void |
write(int c)Outputs character according to type of the output stream |
void |
writeChars(java.lang.String str)Write string to the output |
void |
writeIndent()Output the indentation |
void |
writeNewLine()Newline writer |
void |
writeQuotedString(java.lang.String str)Write string with surrounding quotes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int DEFAULT
public static int PRETTY
public static int COMPACT
| Constructor Detail |
public XMLOutputStream(java.io.OutputStream out)
out - the output streampublic XMLOutputStream(java.io.Writer out)
out - the PrintWriter streampublic XMLOutputStream(java.io.PrintWriter out)
out - the PrintWriter stream| Method Detail |
public void setEOLChars(java.lang.String nl)
public void setEncoding(java.lang.String encoding,
boolean lendian,
boolean byteOrderMark)
throws java.io.IOException
encoding - the encoding of the streamlendian - flag to indicate if the encoding is of type little endianbyteOrderMark - flag to indicate if byte order mark is setjava.io.IOException - if error is thrown in setting the encoding type
public void flush()
throws java.io.IOException
java.io.IOException - if there is any error in flushing the output stream
public void close()
throws java.io.IOException
java.io.IOException - if there is any error in closing the output stream
public void write(int c)
throws java.io.IOException
c - the character that needs to be writtenjava.io.IOException - if there is any error in writing the character
public void writeChars(java.lang.String str)
throws java.io.IOException
str - the string that is written to the output streamjava.io.IOException - error thrown if there is any error in writing the string
public void writeQuotedString(java.lang.String str)
throws java.io.IOException
str - the string that is written to the output streamjava.io.IOException - error thrown if there is any error in writing the string
public void writeNewLine()
throws java.io.IOException
java.io.IOException - error thrown if there is any error in writing the stringpublic void addIndent(int offset)
offset - the indenting level
public void writeIndent()
throws java.io.IOException
java.io.IOException - error thrown if there is any error in writing the stringpublic void setOutputStyle(int style)
style - the output stylepublic int getOutputStyle()
|
Oracle® XML Java API Reference 10g Release 1 (10.1) B12024-02 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||