|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.shared_tomahawk.renderkit.html.util.HTMLEncoder
public abstract class HTMLEncoder
Converts Strings so that they can be used within HTML-Code.
Constructor Summary | |
---|---|
HTMLEncoder()
|
Method Summary | |
---|---|
static void |
encode(char[] string,
int offset,
int length,
boolean encodeNewline,
boolean encodeSubsequentBlanksToNbsp,
boolean encodeNonLatin,
java.io.Writer writer)
Encodes the given string, so that it can be used within a html page. |
static void |
encode(char[] string,
int offset,
int length,
boolean encodeNewline,
boolean encodeSubsequentBlanksToNbsp,
java.io.Writer writer)
Variant of encode(java.lang.String) where encodeNbsp and encodeNonLatin are true |
static void |
encode(char[] string,
int offset,
int length,
boolean encodeNewline,
java.io.Writer writer)
Variant of encode(java.lang.String) where encodeNbsp is true. |
static void |
encode(char[] string,
int offset,
int length,
java.io.Writer writer)
Variant of encode(java.lang.String) where encodeNewline is false and encodeNbsp is true. |
static java.lang.String |
encode(java.lang.String string)
Variant of encode(java.lang.String) where encodeNewline is false and encodeNbsp is true. |
static java.lang.String |
encode(java.lang.String string,
boolean encodeNewline)
Variant of encode(java.lang.String) where encodeNbsp is true. |
static java.lang.String |
encode(java.lang.String string,
boolean encodeNewline,
boolean encodeSubsequentBlanksToNbsp)
Variant of encode(java.lang.String) where encodeNbsp and encodeNonLatin are true |
static java.lang.String |
encode(java.lang.String string,
boolean encodeNewline,
boolean encodeSubsequentBlanksToNbsp,
boolean encodeNonLatin)
Encodes the given string, so that it can be used within a html page. |
static java.lang.String |
encodeURIAtributte(java.lang.String string,
java.lang.String characterEncoding)
Encode an URI, escaping or percent-encoding all required characters and following the rules mentioned on RFC 3986. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HTMLEncoder()
Method Detail |
---|
public static java.lang.String encode(java.lang.String string)
encode(java.lang.String)
where encodeNewline is false and encodeNbsp is true.
public static java.lang.String encode(java.lang.String string, boolean encodeNewline)
encode(java.lang.String)
where encodeNbsp is true.
public static java.lang.String encode(java.lang.String string, boolean encodeNewline, boolean encodeSubsequentBlanksToNbsp)
encode(java.lang.String)
where encodeNbsp and encodeNonLatin are true
public static java.lang.String encode(java.lang.String string, boolean encodeNewline, boolean encodeSubsequentBlanksToNbsp, boolean encodeNonLatin)
string
- the string to convertencodeNewline
- if true newline characters are converted to <br>'sencodeSubsequentBlanksToNbsp
- if true subsequent blanks are converted to 'sencodeNonLatin
- if true encode non-latin characters as numeric character referencespublic static void encode(char[] string, int offset, int length, java.io.Writer writer) throws java.io.IOException
encode(java.lang.String)
where encodeNewline is false and encodeNbsp is true.
java.io.IOException
public static void encode(char[] string, int offset, int length, boolean encodeNewline, java.io.Writer writer) throws java.io.IOException
encode(java.lang.String)
where encodeNbsp is true.
java.io.IOException
public static void encode(char[] string, int offset, int length, boolean encodeNewline, boolean encodeSubsequentBlanksToNbsp, java.io.Writer writer) throws java.io.IOException
encode(java.lang.String)
where encodeNbsp and encodeNonLatin are true
java.io.IOException
public static void encode(char[] string, int offset, int length, boolean encodeNewline, boolean encodeSubsequentBlanksToNbsp, boolean encodeNonLatin, java.io.Writer writer) throws java.io.IOException
string
- the string to convertencodeNewline
- if true newline characters are converted to <br>'sencodeSubsequentBlanksToNbsp
- if true subsequent blanks are converted to 'sencodeNonLatin
- if true encode non-latin characters as numeric character references
java.io.IOException
public static java.lang.String encodeURIAtributte(java.lang.String string, java.lang.String characterEncoding) throws java.io.IOException
string
- encodeNonLatin
-
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |