de.uplanet.util.encoder
Class XmlMarkupEncoder

java.lang.Object
  extended by de.uplanet.util.encoder.XmlMarkupEncoder

@Scriptable
public final class XmlMarkupEncoder
extends java.lang.Object

Replace <, >, &, ", and ' with their respective XML entities.

Version:
$Revision: 55002 $

Method Summary
static java.lang.StringBuilder decode(java.lang.StringBuilder p_out, java.lang.CharSequence p_in)
           
static
<T extends java.lang.Appendable>
T
decode(T p_out, java.lang.CharSequence p_in)
           
static java.lang.StringBuilder encode(java.lang.StringBuilder p_out, char[] p_in)
           
static java.lang.StringBuilder encode(java.lang.StringBuilder p_out, java.lang.CharSequence p_in)
           
static
<T extends java.lang.Appendable>
T
encode(T p_out, char[] p_in)
           
static
<T extends java.lang.Appendable>
T
encode(T p_out, java.lang.CharSequence p_in)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encode

public static final java.lang.StringBuilder encode(java.lang.StringBuilder p_out,
                                                   java.lang.CharSequence p_in)
See Also:
encode(Appendable, CharSequence)

encode

public static final <T extends java.lang.Appendable> T encode(T p_out,
                                                              java.lang.CharSequence p_in)
                                                   throws java.io.IOException
Parameters:
p_out - The object to write output to.
p_in - The character data to be encoded.
Returns:
The given p_out.
Throws:
java.io.IOException

encode

public static final java.lang.StringBuilder encode(java.lang.StringBuilder p_out,
                                                   char[] p_in)
See Also:
encode(Appendable, char[])

encode

public static final <T extends java.lang.Appendable> T encode(T p_out,
                                                              char[] p_in)
                                                   throws java.io.IOException
Parameters:
p_out - The object to write output to.
p_in - The character data to be encoded.
Returns:
The given p_out.
Throws:
java.io.IOException

decode

public static final java.lang.StringBuilder decode(java.lang.StringBuilder p_out,
                                                   java.lang.CharSequence p_in)
See Also:
decode(Appendable, CharSequence)

decode

public static final <T extends java.lang.Appendable> T decode(T p_out,
                                                              java.lang.CharSequence p_in)
                                                   throws java.io.IOException
Parameters:
p_out - The object to write output to.
p_in - The character data to be decoded.
Returns:
The given p_out.
Throws:
java.io.IOException


Last updated: 2011-08-11 10-04
Copyright © 2000-2011 United Planet. All Rights Reserved.