com.nttdocomo.net
クラス URLEncoder

Object
  拡張com.nttdocomo.net.URLEncoder

public class URLEncoder
extends Object

文字列を x-www-form-urlencoded 形式の文字列に変換するためのクラスです。


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

メソッドの詳細

encode

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

パラメータ:
str - エンコードする文字列を指定します。
戻り値:
URL エンコード形式に変換された文字列を返します。
例外:
NullPointerException - 引数 str に null が指定された場合に発生します。