Package de.uplanet.util.encoder
Class XmlMarkupEncoder
- java.lang.Object
-
- de.uplanet.util.encoder.XmlMarkupEncoder
-
@Scriptable public final class XmlMarkupEncoder extends Object
Replace <, >, &, ", and ' with their respective XML entities.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringBuilder
decode(StringBuilder p_out, CharSequence p_in)
static <T extends Appendable>
Tdecode(T p_out, CharSequence p_in)
static StringBuilder
encode(StringBuilder p_out, char[] p_in)
static StringBuilder
encode(StringBuilder p_out, CharSequence p_in)
static <T extends Appendable>
Tencode(T p_out, char[] p_in)
static <T extends Appendable>
Tencode(T p_out, CharSequence p_in)
-
-
-
Method Detail
-
encode
public static final StringBuilder encode(StringBuilder p_out, CharSequence p_in)
- See Also:
encode(Appendable, CharSequence)
-
encode
public static final <T extends Appendable> T encode(T p_out, CharSequence p_in) throws IOException
- Parameters:
p_out
- The object to write output to.p_in
- The character data to be encoded.- Returns:
- The given
p_out
. - Throws:
IOException
-
encode
public static final StringBuilder encode(StringBuilder p_out, char[] p_in)
- See Also:
encode(Appendable, char[])
-
encode
public static final <T extends Appendable> T encode(T p_out, char[] p_in) throws IOException
- Parameters:
p_out
- The object to write output to.p_in
- The character data to be encoded.- Returns:
- The given
p_out
. - Throws:
IOException
-
decode
public static final StringBuilder decode(StringBuilder p_out, CharSequence p_in)
- See Also:
decode(Appendable, CharSequence)
-
decode
public static final <T extends Appendable> T decode(T p_out, CharSequence p_in) throws IOException
- Parameters:
p_out
- The object to write output to.p_in
- The character data to be decoded.- Returns:
- The given
p_out
. - Throws:
IOException
-
-