org.norther.tammi.acorn.io
Class XMLWriter
java.lang.Object
java.io.Writer
org.norther.tammi.acorn.io.XMLWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public class XMLWriter
- extends Writer
An XML writer adapter encoding reserved characters as XML entities.
- Version:
- $Id: XMLWriter.java,v 1.3 2009/09/28 15:08:49 cvsimp Exp $
- Author:
- Ilkka Priha
Method Summary |
void |
close()
|
void |
flush()
|
void |
write(char[] chars,
int start,
int count)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLWriter
public XMLWriter(Writer w)
- Constructs a new writer.
- Parameters:
w
- a writer adaptee.
flush
public void flush()
throws IOException
- Specified by:
flush
in interface Flushable
- Specified by:
flush
in class Writer
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Specified by:
close
in class Writer
- Throws:
IOException
write
public void write(char[] chars,
int start,
int count)
throws IOException
- Specified by:
write
in class Writer
- Throws:
IOException
Copyright © 2004 The Norther Organization. All rights reserved.