public class Java2HTMLEntityReader extends SubstitutionTextReader
SubstitutionTextReader that will substitute html entities for
html symbols encountered in the original text. Line breaks and whitespaces
are preserved.| Constructor and Description |
|---|
Java2HTMLEntityReader(java.io.Reader reader)
Creates a new instance that will read from
reader |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
computeSubstitution(int c)
Implement to compute the substitution for the given character and
if necessary subsequent characters.
|
close, getReader, getString, isSkippingWhitespace, nextChar, read, read, ready, reset, setSkipWhitespacepublic Java2HTMLEntityReader(java.io.Reader reader)
readerreader - the source readerprotected java.lang.String computeSubstitution(int c)
throws java.io.IOException
SubstitutionTextReadernextChar
to read subsequent characters.computeSubstitution in class SubstitutionTextReaderjava.io.IOException