Class URLDecoder

java.lang.Object
at.gv.egovernment.moaspss.util.URLDecoder

public class URLDecoder extends Object
Decodes an URL encoded String using a specified character encoding. Provides a function missing in JDK 1.3.
  • Constructor Details

    • URLDecoder

      public URLDecoder()
  • Method Details

    • decode

      public static String decode(String s, String encoding) throws UnsupportedEncodingException
      Decodes an application/x-www-form-urlencoded string using a specific encoding scheme.
      Parameters:
      s - the string to decode
      encoding - name of character encoding
      Returns:
      the newly decoded string
      Throws:
      UnsupportedEncodingException - if the encoding is not supported