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[]
EMPTY
protected 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 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)
-
-
-
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 IOException
Writes 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()
-
-