public abstract class WriterHelper extends Object
Modifier and Type | Field and Description |
---|---|
protected static char[] |
EMPTY |
protected static char[][] |
ISO8859_1_ENTITIES |
Constructor and Description |
---|
WriterHelper(Writer out,
Charset charset) |
WriterHelper(Writer out,
String characterEncoding)
Deprecated.
since 4.3.0
|
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
@Deprecated public WriterHelper(Writer out, String characterEncoding)
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–2020 The Apache Software Foundation. All rights reserved.