Class TextEncoder

java.lang.Object
com.opensymphony.module.sitemesh.filter.TextEncoder

public class TextEncoder extends Object
Converts text stored in byte[] to char[] using specified encoding.
Author:
Scott Farquhar, Hani Suleiman, Joe Walnes
  • Constructor Details

    • TextEncoder

      public TextEncoder()
  • Method Details

    • encode

      public char[] encode(byte[] data, String encoding) throws IOException
      Encode.
      Parameters:
      data - the data
      encoding - the encoding
      Returns:
      the char[]
      Throws:
      IOException - Signals that an I/O exception has occurred.