public static InvalidXmlCharFilter createReplaceCharsFilter(final Reader in,
                                                                final XmlChars xmlChars,
                                                                final boolean replace,
                                                                final char replacementChar) {
        return new InvalidXmlCharFilter(in, xmlChars, replace, replacementChar);
    }
An implementation of TransformReader to replace invalid XML (1.0 or 1.1)
characters with the replacement character. The purpose of this class is to
modify character streams (in UTF-16) such as to avoid fatal parse errors
arising in the XML parser.
<p>
The valid XML character ranges are taken from the XML standards documents
available from:
<p>
http://www.w3.org/TR/xml http://www.w3.org/TR/xml11
<p>
SH
stroom-pipeline/src/main/java/stroom/pipeline/reader/InvalidXmlCharFilter.java