org.apache.myfaces.trinidadinternal.io
Class HTMLEscapes

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.io.HTMLEscapes

public class HTMLEscapes
extends java.lang.Object

Utility class for escaping HTML text.


Method Summary
static void writeAttribute(java.io.Writer out, char[] buff, java.lang.String attributeValue)
          Write a string attribute
static void writeText(java.io.Writer out, char[] buff, char[] text, int start, int length)
          Write char array text.
static void writeText(java.io.Writer out, char[] buff, java.lang.String text)
          Write String text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

writeText

public static void writeText(java.io.Writer out,
                             char[] buff,
                             char[] text,
                             int start,
                             int length)
                      throws java.io.IOException
Write char array text. Note that this code is duplicated below for Strings - change both places if you make any changes!!!

Throws:
java.io.IOException

writeText

public static void writeText(java.io.Writer out,
                             char[] buff,
                             java.lang.String text)
                      throws java.io.IOException
Write String text.

Throws:
java.io.IOException

writeAttribute

public static void writeAttribute(java.io.Writer out,
                                  char[] buff,
                                  java.lang.String attributeValue)
                           throws java.io.IOException
Write a string attribute

Throws:
java.io.IOException


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.