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
-
Constructor Summary
Constructors Constructor Description XmlReaderFilter(java.io.Reader in)Constructor. -
Method Summary
Modifier and Type Method Description booleanisValidChar(char c)Tells the filter reader whether the given character is valid or not.
-
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:
isValidCharin classAbstractReaderFilter- Parameters:
c- the character to be validated- Returns:
truewhen the character can be delivered
-