Class EncodingUtils

java.lang.Object
com.aoapps.hodgepodge.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

    Modifier and Type
    Method
    Description
    static void
    encodeHtml(char ch, boolean makeBr, boolean makeNbsp, Appendable out, boolean isXhtml)
    Deprecated.
    the effects of makeBr and makeNbsp should be handled by CSS white-space property.
    static void
    encodeHtml(char ch, Appendable out, boolean isXhtml)
    Deprecated.
    the effects of makeBr and makeNbsp should be handled by CSS white-space property.
    static void
    encodeHtml(CharSequence cs, int start, int end, boolean makeBr, boolean makeNbsp, Appendable out, boolean isXhtml)
    Deprecated.
    the effects of makeBr and makeNbsp should be handled by CSS white-space property.
    static void
    encodeHtml(CharSequence cs, int start, int end, Appendable out, boolean isXhtml)
    Deprecated.
    the effects of makeBr and makeNbsp should be handled by CSS white-space property.
    static String
    encodeHtml(Object value, boolean isXhtml)
    Deprecated.
    the effects of makeBr and makeNbsp should be handled by CSS white-space property.
    static String
    encodeHtml(Object value, boolean makeBr, boolean makeNbsp, boolean isXhtml)
    Deprecated.
    the effects of makeBr and makeNbsp should be handled by CSS white-space property.
    static void
    encodeHtml(Object value, boolean makeBr, boolean makeNbsp, Appendable out, boolean isXhtml)
    Deprecated.
    the effects of makeBr and makeNbsp should be handled by CSS white-space property.
    static void
    encodeHtml(Object value, Appendable out, boolean isXhtml)
    Deprecated.
    the effects of makeBr and makeNbsp should be handled by CSS white-space property.
    static String
    Deprecated.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • toString

      @Deprecated public static String toString(Object value)
      Deprecated.
    • 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 provided Appendable. In addition to the standard XML Body encoding, it turns newlines into <br />, tabs to &#x9;, and spaces to &#160;

      See TextInXhtmlEncoder.

      Parameters:
      value - the object to be escaped. If value is null, nothing is written.
      Throws:
      IOException
    • encodeHtml

      @Deprecated public static void encodeHtml(CharSequence cs, 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 provided Appendable. In addition to the standard XML Body encoding, it turns newlines into <br /> and spaces to &#160;

      See TextInXhtmlEncoder.

      Parameters:
      cs - the string to be escaped. If S is null, 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 makeBr, boolean makeNbsp, 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 cs, int start, int end, boolean makeBr, boolean makeNbsp, 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 provided Appendable. Optionally, it turns newlines into <br /> and spaces to &#160; Any characters less than 0x1f that are not \t, \r, or \n are completely filtered.

      See TextInXhtmlEncoder.

      Parameters:
      cs - the string to be escaped. If S is null, nothing is written.
      makeBr - will write <br /> tags for every newline character
      makeNbsp - will write &#160; for a space when another space follows
      Throws:
      IOException
    • encodeHtml

      @Deprecated public static String encodeHtml(Object value, boolean makeBr, boolean makeNbsp, 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 makeBr, boolean makeNbsp, Appendable out, boolean isXhtml) throws IOException
      Deprecated.
      the effects of makeBr and makeNbsp should be handled by CSS white-space property.
      Throws:
      IOException