|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.faces.util.HtmlUtils
public class HtmlUtils
Utility class for HTML. Kudos to Adam Winer (Oracle) for much of this code.
| Method Summary | |
|---|---|
static boolean |
isEmptyElement(java.lang.String name)
|
static boolean |
validateEncoding(java.lang.String encoding)
|
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. |
static void |
writeURL(java.io.Writer out,
java.lang.String text,
java.lang.String queryEncoding,
java.lang.String contentType)
Writes a string into URL-encoded format out to a Writer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void writeText(java.io.Writer out,
char[] buffer,
char[] text)
throws java.io.IOException
java.io.IOException
public static void writeText(java.io.Writer out,
char[] buff,
char[] text,
int start,
int length)
throws java.io.IOException
java.io.IOException
public static void writeText(java.io.Writer out,
char[] buff,
java.lang.String text)
throws java.io.IOException
java.io.IOException
public static void writeAttribute(java.io.Writer out,
char[] buff,
java.lang.String text)
throws java.io.IOException
java.io.IOException
public static void writeAttribute(java.io.Writer out,
char[] buffer,
char[] text)
throws java.io.IOException
java.io.IOException
public static void writeAttribute(java.io.Writer out,
char[] buff,
char[] text,
int start,
int length)
throws java.io.IOException
java.io.IOException
public static void writeURL(java.io.Writer out,
java.lang.String text,
java.lang.String queryEncoding,
java.lang.String contentType)
throws java.io.IOException,
java.io.UnsupportedEncodingException
out - a Writer for the outputtext - the unencoded (or partially encoded) StringqueryEncoding - the character set encoding for after the first
question mark
java.io.IOException
java.io.UnsupportedEncodingExceptionpublic static boolean validateEncoding(java.lang.String encoding)
public static boolean isEmptyElement(java.lang.String name)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||