|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Objectorg.seasar.framework.util.URLUtil
URLを扱うユーティリティ・クラスです。
| フィールドの概要 | |
protected static Map |
CANONICAL_PROTOCOLS
プロトコルを正規化するためのマップ |
| メソッドの概要 | |||
static URL |
create(String spec)
String表現からURLオブジェクトを作成します。 |
||
static URL |
create(URL context,
String spec)
指定されたコンテキスト内の指定された仕様で構文解析することによって、 URLを生成します。 |
||
static String |
decode(String s,
String enc)
特別な符号化方式を使用して application/x-www-form-urlencoded文字列をデコードします。 |
||
static void |
disableURLCaches()
|
static String |
encode(String s,
String enc)
特定の符号化方式を使用して文字列を application/x-www-form-urlencoded形式に変換します。 |
static URLConnection |
openConnection(URL url)
URLが参照するリモートオブジェクトへの接続を表す URLConnectionオブジェクトを返します。 |
||
static InputStream |
openStream(URL url)
URLをオープンして InputStreamを返します。 |
||
static String |
toCanonicalProtocol(String protocol)
プロトコルを正規化して返します。 |
||
static File |
toFile(URL fileUrl)
URLが示すJarファイルの Fileオブジェクトを返します。 |
||
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
protected static final Map CANONICAL_PROTOCOLS
| メソッドの詳細 |
public static InputStream openStream(URL url)
InputStreamを返します。
url - URL
InputStreampublic static URLConnection openConnection(URL url)
URLConnectionオブジェクトを返します。
url - URL
URLConnectionオブジェクトpublic static URL create(String spec)
String表現からURLオブジェクトを作成します。
spec - URLとして構文解析されるString
URL
public static URL create(URL context,
String spec)
URLを生成します。
context - 仕様を構文解析するコンテキストspec - URLとして構文解析されるString
URL
public static String encode(String s,
String enc)
application/x-www-form-urlencoded形式に変換します。
s - 変換対象の Stringenc - サポートされる文字エンコーディングの名前
String
public static String decode(String s,
String enc)
application/x-www-form-urlencoded文字列をデコードします。
s - デコード対象のStringenc - サポートされる文字エンコーディングの名前
public static String toCanonicalProtocol(String protocol)
protocol - プロトコル
public static File toFile(URL fileUrl)
Fileオブジェクトを返します。
fileUrl - JarファイルのURL
Filepublic static void disableURLCaches()
|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||