jp.sourceforge.livez.util
クラス URLUtils

java.lang.Object
  上位を拡張 jp.sourceforge.livez.util.URLUtils

public final class URLUtils
extends Object

HTML 形式を符号化/復号化する為のユーティリティクラスです。

作成者:
杉澤 浩二

メソッドの概要
static String decode(String s)
          x-www-form-urlencoded 文字列を復号化します。
static String encode(String s)
          文字列を application/x-www-form-urlencoded 形式に変換します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

decode

public static final String decode(String s)
                           throws IllegalArgumentException
x-www-form-urlencoded 文字列を復号化します。 シフトJISの符号化方式を使用して、「%xy」の形式の連続シーケンスが表す文字を決定します。

パラメータ:
s - 復号化対象の文字列
戻り値:
新しく復号化された文字列
例外:
IllegalArgumentException

encode

public static final String encode(String s)
文字列を application/x-www-form-urlencoded 形式に変換します。 このメソッドは、シフトJISの符号化方式を符号化方式として使用して、例外を発生されることなく処理します。

パラメータ:
s - 変換対象の文字列
戻り値:
変換後の文字列


Copyright © 2005-2006 Kouji Sugisawa. All rights reserved.