Class WriterHelper
- java.lang.Object
-
- org.apache.myfaces.tobago.internal.util.WriterHelper
-
- Direct Known Subclasses:
HtmlWriterHelper
public abstract class WriterHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static char[]EMPTYprotected static char[][]ISO8859_1_ENTITIES
-
Constructor Summary
Constructors Constructor Description WriterHelper(Writer out, String characterEncoding)Deprecated.since 4.3.0WriterHelper(Writer out, Charset charset)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected ResponseWriterBuffergetBuffer()protected WritergetOut()protected booleanisUtf8()voidwriteAttributeValue(String text)protected voidwriteDecRef(char ch)Writes a character as a decimal escape.protected abstract voidwriteEncodedValue(char[] text, int start, int length, boolean isAttribute)voidwriteText(char[] text, int start, int length)voidwriteText(String text)
-
-
-
Constructor Detail
-
WriterHelper
@Deprecated public WriterHelper(Writer out, String characterEncoding)
Deprecated.since 4.3.0
-
-
Method Detail
-
writeAttributeValue
public void writeAttributeValue(String text) throws IOException
- Throws:
IOException
-
writeText
public void writeText(String text) throws IOException
- Throws:
IOException
-
writeText
public void writeText(char[] text, int start, int length) throws IOException- Throws:
IOException
-
writeEncodedValue
protected abstract void writeEncodedValue(char[] text, int start, int length, boolean isAttribute) throws IOException- Throws:
IOException
-
writeDecRef
protected void writeDecRef(char ch) throws IOExceptionWrites a character as a decimal escape. Hex escapes are smaller than the decimal version, but Netscape didn't support hex escapes until 4.7.4.- Throws:
IOException
-
getOut
protected final Writer getOut()
-
getBuffer
protected final ResponseWriterBuffer getBuffer()
-
isUtf8
protected final boolean isUtf8()
-
-