public class HtmlUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
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.
|
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 markjava.io.IOException
java.io.UnsupportedEncodingException
public static boolean validateEncoding(java.lang.String encoding)
public static boolean isEmptyElement(java.lang.String name)
Copyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.