public class HtmlUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isEmptyElement(String name) |
static boolean |
isISO8859_1encoding(String encoding) |
static boolean |
isUTFencoding(String encoding) |
static boolean |
validateEncoding(String encoding) |
static void |
writeAttribute(Writer out,
boolean escapeUnicode,
boolean escapeIsocode,
char[] buffer,
char[] text) |
static void |
writeAttribute(Writer out,
boolean escapeUnicode,
boolean escapeIsocode,
char[] buff,
char[] text,
int start,
int length,
boolean isScriptInAttributeValueEnabled)
Write a character array attribute.
|
static void |
writeAttribute(Writer out,
boolean escapeUnicode,
boolean escapeIsocode,
char[] buff,
String text,
char[] textBuff,
boolean isScriptInAttributeValueEnabled)
Write a string attribute.
|
static void |
writeText(Writer out,
boolean escapeUnicode,
boolean escapeIsocode,
char[] buffer,
char[] text) |
static void |
writeText(Writer out,
boolean escapeUnicode,
boolean escapeIsocode,
char[] buff,
char[] text,
int start,
int length)
Write char array text.
|
static void |
writeText(Writer out,
boolean escapeUnicode,
boolean escapeIsocode,
char[] buff,
String text,
char[] textBuff)
Write String text.
|
static void |
writeTextForXML(Writer out,
String text,
char[] outbuf) |
static void |
writeUnescapedTextForXML(Writer out,
String text) |
static void |
writeURL(Writer out,
char[] textBuff,
int start,
int len,
String queryEncoding)
Writes a string into URL-encoded format out to a Writer.
|
static void |
writeURL(Writer out,
String text,
char[] textBuff,
String queryEncoding)
Writes a string into URL-encoded format out to a Writer.
|
public static void writeText(Writer out, boolean escapeUnicode, boolean escapeIsocode, char[] buffer, char[] text) throws IOException
IOException
public static void writeText(Writer out, boolean escapeUnicode, boolean escapeIsocode, char[] buff, char[] text, int start, int length) throws IOException
IOException
public static void writeText(Writer out, boolean escapeUnicode, boolean escapeIsocode, char[] buff, String text, char[] textBuff) throws IOException
IOException
public static void writeAttribute(Writer out, boolean escapeUnicode, boolean escapeIsocode, char[] buff, String text, char[] textBuff, boolean isScriptInAttributeValueEnabled) throws IOException
IOException
public static void writeAttribute(Writer out, boolean escapeUnicode, boolean escapeIsocode, char[] buffer, char[] text) throws IOException
IOException
public static void writeAttribute(Writer out, boolean escapeUnicode, boolean escapeIsocode, char[] buff, char[] text, int start, int length, boolean isScriptInAttributeValueEnabled) throws IOException
IOException
public static void writeURL(Writer out, String text, char[] textBuff, String queryEncoding) throws IOException, UnsupportedEncodingException
NOTE: This is method is duplicated below. The difference being the acceptance of a char[] for the text to write. Any changes made here, should be made below.
out
- a Writer for the outputtext
- the unencoded (or partially encoded) StringqueryEncoding
- the character set encoding for after the first
question markIOException
UnsupportedEncodingException
public static void writeURL(Writer out, char[] textBuff, int start, int len, String queryEncoding) throws IOException, UnsupportedEncodingException
NOTE: This is method is duplicated above. The difference being the acceptance of a String for the text to write. Any changes made here, should be made above.
out
- a Writer for the outputtextBuff
- char[] containing the content to writequeryEncoding
- the character set encoding for after the first
question markIOException
UnsupportedEncodingException
public static void writeTextForXML(Writer out, String text, char[] outbuf) throws IOException
IOException
public static void writeUnescapedTextForXML(Writer out, String text) throws IOException
IOException
public static boolean validateEncoding(String encoding)
public static boolean isISO8859_1encoding(String encoding)
public static boolean isUTFencoding(String encoding)
public static boolean isEmptyElement(String name)
Comments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.