Package rs.baselib.io

Class XmlReaderFilter

All Implemented Interfaces:
Closeable, AutoCloseable, Readable

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

    • XmlReaderFilter

      public XmlReaderFilter(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