com.nttdocomo.net
クラス URLDecoder

Object
  拡張com.nttdocomo.net.URLDecoder

public class URLDecoder
extends Object

x-www-form-urlencoded 形式の文字列を通常の文字列にデコードするためのクラスです。


メソッドの概要
static String decode(String str)
          URL エンコード形式の文字列をデコードした文字列を生成します。
 
クラス Object から継承したメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

decode

public static String decode(String str)
URL エンコード形式の文字列をデコードした文字列を生成します。 x-www-form-urlencoded 形式の文字列をデコードした後、 デフォルトエンコーディングの文字列とみなして Unicode 文字列に変換します。

パラメータ:
str - URL エンコード形式の文字列を指定します。
戻り値:
デコードされた文字列を返します。
例外:
NullPointerException - 引数 str に null が指定された場合に発生します。
IllegalArgumentException - 引数 str に x-www-form-urlencoded 形式ではない文字列が指定された場合に発生します。