|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.util.net.URLUtil
public abstract class URLUtil
URLを扱うユーティリティ・クラスです。
| フィールドの概要 | |
|---|---|
protected static Map<String,String> |
CANONICAL_PROTOCOLS
プロトコルを正規化するためのマップ |
| コンストラクタの概要 | |
|---|---|
URLUtil()
|
|
| メソッドの概要 | |||
|---|---|---|---|
static URL |
create(String spec)
文字列表現から 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<String,String> CANONICAL_PROTOCOLS
| コンストラクタの詳細 |
|---|
public URLUtil()
| メソッドの詳細 |
|---|
public static InputStream openStream(URL url)
InputStreamを返します。
url - URL。nullであってはいけません
InputStreampublic static URLConnection openConnection(URL url)
URLConnectionオブジェクトを返します。
url - URL。nullであってはいけません
URLConnectionオブジェクトpublic static URL create(String spec)
URLオブジェクトを作成します。
spec - URLとして構文解析される文字列。nullや空文字列であってはいけません
URL
public static URL create(URL context,
String spec)
URLを生成します。
context - 仕様を構文解析するコンテキスト。nullであってはいけませんspec - URLとして構文解析される文字列。nullや空文字列であってはいけません
URL
public static String encode(String s,
String enc)
application/x-www-form-urlencoded
形式に変換します。
s - 変換対象の文字列。nullや空文字列であってはいけませんenc - エンコーディング。nullや空文字列であってはいけません
application/x-www-form-urlencodedでエンコード文字列
public static String decode(String s,
String enc)
application/x-www-form-urlencoded文字列をデコードします。
s - application/x-www-form-urlencodedでエンコードされた文字列。
nullや空文字列であってはいけませんenc - エンコーディング。nullや空文字列であってはいけません
public static String toCanonicalProtocol(String protocol)
protocol - プロトコル。nullや空文字列であってはいけません
public static File toFile(URL fileUrl)
Fileオブジェクトを返します。
fileUrl - JarファイルのURL。nullであってはいけません
Filepublic static void disableURLCaches()
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||