Package rs.baselib.io

Class XmlReaderFilter

java.lang.Object
java.io.Reader
java.io.FilterReader
rs.baselib.io.AbstractReaderFilter
rs.baselib.io.XmlReaderFilter
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable, java.lang.Readable

public class XmlReaderFilter
extends AbstractReaderFilter
Filters invalid XML characters from a stream.
Author:
ralph
  • Field Summary

    Fields inherited from class java.io.FilterReader

    in

    Fields inherited from class java.io.Reader

    lock
  • Constructor Summary

    Constructors 
    Constructor Description
    XmlReaderFilter​(java.io.Reader in)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    boolean isValidChar​(char c)
    Tells the filter reader whether the given character is valid or not.

    Methods inherited from class rs.baselib.io.AbstractReaderFilter

    read, read

    Methods inherited from class java.io.FilterReader

    close, mark, markSupported, ready, reset, skip

    Methods inherited from class java.io.Reader

    nullReader, read, read, transferTo

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • XmlReaderFilter

      public XmlReaderFilter​(java.io.Reader in)
      Constructor.
      Parameters:
      in - - the underlying reader
  • Method Details

    • isValidChar

      public boolean isValidChar​(char c)
      Tells the filter reader whether the given character is valid or not.
      Specified by:
      isValidChar in class AbstractReaderFilter
      Parameters:
      c - the character to be validated
      Returns:
      true when the character can be delivered