org.apache.myfaces.trinidadinternal.ui.io
Class HTMLEscapes

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

public class HTMLEscapes
extends java.lang.Object

Utility class for escaping HTML text.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/ui/io/HTMLEscapes.java#0 $) $Date: 15-nov-2005.19:26:39 $
Author:
The Oracle ADF Faces Team

Method Summary
static java.lang.String escapeText(java.lang.String text)
          Returns an escaped String of text
static void writeAttribute(java.io.Writer out, char[] buffer, char[] text)
           
static void writeAttribute(java.io.Writer out, char[] buff, char[] text, int start, int length)
          Write a character array attribute.
static void writeAttribute(java.io.Writer out, char[] buff, java.lang.String text)
          Write a string attribute.
static void writeText(java.io.Writer out, char[] buffer, char[] text)
           
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

escapeText

public static java.lang.String escapeText(java.lang.String text)
Returns an escaped String of text


writeText

public static void writeText(java.io.Writer out,
                             char[] buffer,
                             char[] text)
                      throws java.io.IOException
Throws:
java.io.IOException

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. Note that this code is duplicated above for character arrays - change both places if you make any changes!!!

Throws:
java.io.IOException

writeAttribute

public static void writeAttribute(java.io.Writer out,
                                  char[] buff,
                                  java.lang.String text)
                           throws java.io.IOException
Write a string attribute. Note that this code is duplicated below for character arrays - change both places if you make any changes!!!

Throws:
java.io.IOException

writeAttribute

public static void writeAttribute(java.io.Writer out,
                                  char[] buffer,
                                  char[] text)
                           throws java.io.IOException
Throws:
java.io.IOException

writeAttribute

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

Throws:
java.io.IOException


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.