public class XMLWriter
extends java.io.Writer
Writer
Constructor and Description |
---|
XMLWriter(java.io.PrintWriter out)
Construct a new XMLWriter that will write its output to the
specified PrintWriter object.
|
XMLWriter(java.io.Writer out)
Construct a new XMLWriter that will write its output to the
specified Writer object.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this Writer
|
void |
flush()
Flush this Writer
|
void |
write(char[] ch,
int off,
int len)
Write a portion of an array of characters.
|
public XMLWriter(java.io.Writer out)
out
- where the output should really gopublic XMLWriter(java.io.PrintWriter out)
out
- where the output should really gopublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Writer
java.io.IOException
- I/O errorpublic void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.Writer
java.io.IOException
- I/O errorpublic void write(char[] ch, int off, int len) throws java.io.IOException
write
in class java.io.Writer
ch
- array of charactersoff
- offset from which to start writing characterslen
- number of characters to writejava.io.IOException
- I/O error