Class URLEncoderWrapper


  • public class URLEncoderWrapper
    extends java.lang.Object
    Wrapper for the URLEncoder which always use UTF-8.
    Since:
    0.6.2
    Version:
    $Revision: $
    Author:
    Thomas Andraschko / last modified by $Author: $
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String encode​(java.lang.String string)
      Encodes the given string with the URLEncoder.encode(String, String) and UTF-8.
      • Methods inherited from class java.lang.Object

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

      • encode

        public static java.lang.String encode​(java.lang.String string)
                                       throws java.io.UnsupportedEncodingException
        Encodes the given string with the URLEncoder.encode(String, String) and UTF-8.
        Parameters:
        string - The value which should be encoded.
        Returns:
        The encoded value.
        Throws:
        java.io.UnsupportedEncodingException - If UTF-8 is not available.