de.saar.basic
Class XmlEncodingWriter

Object
  extended by Writer
      extended by FilterWriter
          extended by ReplacingWriter
              extended by XmlEncodingWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class XmlEncodingWriter
extends ReplacingWriter

A Writer which replaces XML special characters (such as &) by the respective XML entities.

Author:
Alexander Koller

Constructor Summary
XmlEncodingWriter(Writer writer)
          This constructor takes the underlying writer to which the modified strings should be written as its argument.
 
Method Summary
 
Methods inherited from class ReplacingWriter
addReplacementRule, write, write, write
 
Methods inherited from class FilterWriter
close, flush
 
Methods inherited from class Writer
append, append, append, write, write
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlEncodingWriter

public XmlEncodingWriter(Writer writer)
This constructor takes the underlying writer to which the modified strings should be written as its argument.

Parameters:
writer - the underlying writer