Package com.aoindustries.util
Class EncodingUtils
- java.lang.Object
-
- com.aoindustries.util.EncodingUtils
-
@Deprecated public final class EncodingUtils extends Object
Deprecated.Use new encoding package instead.Provides encoding and escaping for various type of data.- Author:
- AO Industries, Inc.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidencodeHtml(char ch, boolean make_br, boolean make_nbsp, Appendable out, boolean isXhtml)Deprecated.the effects of makeBr and makeNbsp should be handled by CSS white-space property.static voidencodeHtml(char ch, Appendable out, boolean isXhtml)Deprecated.the effects of makeBr and makeNbsp should be handled by CSS white-space property.static voidencodeHtml(CharSequence S, int start, int end, boolean make_br, boolean make_nbsp, Appendable out, boolean isXhtml)Deprecated.the effects of makeBr and makeNbsp should be handled by CSS white-space property.static voidencodeHtml(CharSequence S, int start, int end, Appendable out, boolean isXhtml)Deprecated.the effects of makeBr and makeNbsp should be handled by CSS white-space property.static StringencodeHtml(Object value, boolean isXhtml)Deprecated.the effects of makeBr and makeNbsp should be handled by CSS white-space property.static StringencodeHtml(Object value, boolean make_br, boolean make_nbsp, boolean isXhtml)Deprecated.the effects of makeBr and makeNbsp should be handled by CSS white-space property.static voidencodeHtml(Object value, boolean make_br, boolean make_nbsp, Appendable out, boolean isXhtml)Deprecated.the effects of makeBr and makeNbsp should be handled by CSS white-space property.static voidencodeHtml(Object value, Appendable out, boolean isXhtml)Deprecated.the effects of makeBr and makeNbsp should be handled by CSS white-space property.static StringtoString(Object value)Deprecated.Use Coercion.toString(Object) instead.
-
-
-
Method Detail
-
toString
@Deprecated public static String toString(Object value)
Deprecated.Use Coercion.toString(Object) instead.Converts an object to a string.
-
encodeHtml
@Deprecated public static void encodeHtml(Object value, Appendable out, boolean isXhtml) throws IOException
Deprecated.the effects of makeBr and makeNbsp should be handled by CSS white-space property.Escapes for use in a (X)HTML document and writes to the providedAppendable. In addition to the standard XML Body encoding, it turns newlines into <br />, tabs to 	, and spaces to  - Parameters:
value- the object to be escaped. If value isnull, nothing is written.- Throws:
IOException
-
encodeHtml
@Deprecated public static void encodeHtml(CharSequence S, int start, int end, Appendable out, boolean isXhtml) throws IOException
Deprecated.the effects of makeBr and makeNbsp should be handled by CSS white-space property.Escapes for use in a (X)HTML document and writes to the providedAppendable. In addition to the standard XML Body encoding, it turns newlines into <br /> and spaces to  - Parameters:
S- the string to be escaped. If S isnull, nothing is written.- Throws:
IOException
-
encodeHtml
@Deprecated public static String encodeHtml(Object value, boolean isXhtml) throws IOException
Deprecated.the effects of makeBr and makeNbsp should be handled by CSS white-space property.- Throws:
IOException
-
encodeHtml
@Deprecated public static void encodeHtml(char ch, Appendable out, boolean isXhtml) throws IOException
Deprecated.the effects of makeBr and makeNbsp should be handled by CSS white-space property.- Throws:
IOException
-
encodeHtml
@Deprecated public static void encodeHtml(Object value, boolean make_br, boolean make_nbsp, Appendable out, boolean isXhtml) throws IOException
Deprecated.the effects of makeBr and makeNbsp should be handled by CSS white-space property.- Throws:
IOException
-
encodeHtml
@Deprecated public static void encodeHtml(CharSequence S, int start, int end, boolean make_br, boolean make_nbsp, Appendable out, boolean isXhtml) throws IOException
Deprecated.the effects of makeBr and makeNbsp should be handled by CSS white-space property.Escapes for use in a (X)HTML document and writes to the providedAppendable. Optionally, it turns newlines into <br /> and spaces to   Any characters less than 0x1f that are not \t, \r, or \n are completely filtered.- Parameters:
S- the string to be escaped. If S isnull, nothing is written.make_br- will write <br /> tags for every newline charactermake_nbsp- will write   for a space when another space follows- Throws:
IOException
-
encodeHtml
@Deprecated public static String encodeHtml(Object value, boolean make_br, boolean make_nbsp, boolean isXhtml) throws IOException
Deprecated.the effects of makeBr and makeNbsp should be handled by CSS white-space property.- Parameters:
value- the string to be escaped.- Returns:
- if value is null then null otherwise value escaped
- Throws:
IOException
-
encodeHtml
@Deprecated public static void encodeHtml(char ch, boolean make_br, boolean make_nbsp, Appendable out, boolean isXhtml) throws IOException
Deprecated.the effects of makeBr and makeNbsp should be handled by CSS white-space property.- Throws:
IOException
-
-