org.norther.tammi.acorn.io
Class XMLWriter

java.lang.Object
  extended by java.io.Writer
      extended by 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

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
XMLWriter(Writer w)
          Constructs a new writer.
 
Method Summary
 void close()
           
 void flush()
           
 void write(char[] chars, int start, int count)
           
 
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

XMLWriter

public XMLWriter(Writer w)
Constructs a new writer.

Parameters:
w - a writer adaptee.
Method Detail

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.