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