public abstract class WriterUtils extends Object
Modifier and Type | Field and Description |
---|---|
protected static char[] |
EMPTY |
protected static char[][] |
ISO8859_1_ENTITIES |
Constructor and Description |
---|
WriterUtils(Writer out,
String characterEncoding) |
Modifier and Type | Method and Description |
---|---|
protected ResponseWriterBuffer |
getBuffer() |
protected Writer |
getOut() |
protected boolean |
isUtf8() |
void |
writeAttributeValue(String text) |
protected void |
writeDecRef(char ch)
Writes a character as a decimal escape.
|
protected abstract void |
writeEncodedValue(char[] text,
int start,
int length,
boolean isAttribute) |
void |
writeText(char[] text,
int start,
int length) |
void |
writeText(String text) |
protected static final char[] EMPTY
protected static final char[][] ISO8859_1_ENTITIES
public void writeAttributeValue(String text) throws IOException
IOException
public void writeText(String text) throws IOException
IOException
public void writeText(char[] text, int start, int length) throws IOException
IOException
protected abstract void writeEncodedValue(char[] text, int start, int length, boolean isAttribute) throws IOException
IOException
protected void writeDecRef(char ch) throws IOException
IOException
protected final Writer getOut()
protected final ResponseWriterBuffer getBuffer()
protected final boolean isUtf8()
Copyright © 2002-2018 The Apache Software Foundation. All Rights Reserved.