Package org.apache.openjpa.lib.xml
Class XMLWriter
- java.lang.Object
 - 
- java.io.Writer
 - 
- java.io.FilterWriter
 - 
- org.apache.openjpa.lib.xml.XMLWriter
 
 
 
 
- 
- All Implemented Interfaces:
 Closeable,Flushable,Appendable,AutoCloseable
public class XMLWriter extends FilterWriter
The XMLWriter is a writer type for pretty-printing XML. It assumes that the streamed XML will be given without any whitespace, other than the space within text blocks.- Author:
 - Abe White
 
 
- 
- 
Field Summary
- 
Fields inherited from class java.io.FilterWriter
out 
 - 
 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(char[] cbuf, int off, int len)voidwrite(int c)voidwrite(String str, int off, int len)- 
Methods inherited from class java.io.FilterWriter
close, flush 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
XMLWriter
public XMLWriter(Writer out)
Construct an XMLWriter that will write to the given stream. 
 - 
 
- 
Method Detail
- 
write
public void write(char[] cbuf, int off, int len) throws IOException- Overrides:
 writein classFilterWriter- Throws:
 IOException
 
- 
write
public void write(String str, int off, int len) throws IOException
- Overrides:
 writein classFilterWriter- Throws:
 IOException
 
- 
write
public void write(int c) throws IOException- Overrides:
 writein classFilterWriter- Throws:
 IOException
 
 - 
 
 -