public int read() throws IOException {
        final char[] cb = new char[1];
        if (read(cb, 0, 1) == -1) {
            return -1;
        } else {
            return cb[0];
        }
    }
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