|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.Writer
org.clapper.util.io.XMLWriter
public class XMLWriter
XMLWriter is a filtering Writer class, designed to be used to write XML output. Basically, it performs some simple-minded indentation, to make the written XML a little more readable.
Writer| Field Summary |
|---|
| Fields inherited from class java.io.Writer |
|---|
lock |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.io.Writer |
|---|
append, append, append, write, write, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLWriter(java.io.Writer out)
out - where the output should really gopublic XMLWriter(java.io.PrintWriter out)
out - where the output should really go| Method Detail |
|---|
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.Writerjava.io.IOException - I/O error
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.Writerjava.io.IOException - I/O error
public void write(char[] ch,
int off,
int len)
throws java.io.IOException
write in class java.io.Writerch - array of charactersoff - offset from which to start writing characterslen - number of characters to write
java.io.IOException - I/O error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||