public class WriterBase
extends java.io.FilterWriter
Note: the class is only public for testing purposes.
Modifier and Type | Field and Description |
---|---|
protected static char |
CHAR_NULL |
protected static char |
CHAR_SPACE |
protected static char |
HIGHEST_ENCODABLE_ATTR_CHAR
Highest valued character that may need to be encoded (minus charset
encoding requirements) when writing attribute values.
|
protected static char |
HIGHEST_ENCODABLE_TEXT_CHAR
Highest valued character that may need to be encoded (minus charset
encoding requirements) when writing attribute values.
|
protected char[] |
mEntityBuffer
Temporary char buffer used to assemble character entities.
|
protected static java.lang.String |
STR_ESCAPED_CR
Character entity for representing \r character; used if this
character is to be round-trippable (receiving app needs to be
able to distinguish it from other linefeeds)
|
Modifier | Constructor and Description |
---|---|
protected |
WriterBase(java.io.Writer out) |
Modifier and Type | Method and Description |
---|---|
protected static java.lang.String |
getQuoteEntity(char qchar) |
protected void |
throwNullChar() |
protected void |
writeAsEntity(int c) |
protected static final char HIGHEST_ENCODABLE_ATTR_CHAR
protected static final char HIGHEST_ENCODABLE_TEXT_CHAR
protected static final char CHAR_NULL
protected static final char CHAR_SPACE
protected static final java.lang.String STR_ESCAPED_CR
protected char[] mEntityBuffer
protected static final java.lang.String getQuoteEntity(char qchar) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
protected void throwNullChar() throws java.io.IOException
java.io.IOException
protected final void writeAsEntity(int c) throws java.io.IOException
java.io.IOException