パッケージ com.kazurayam.ant.launch
クラス Locator
- java.lang.Object
-
- com.kazurayam.ant.launch.Locator
-
public class Locator extends java.lang.Object
-
-
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 static java.lang.String
ERROR_NOT_FILE_URI
Error string used when an invalid uri is seen
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 Locator()
-
メソッドの概要
すべてのメソッド staticメソッド concreteメソッド 修飾子とタイプ メソッド 説明 static java.lang.String
decodeUri(java.lang.String uri)
Decodes an Uri with % characters.static java.lang.String
fromURI(java.lang.String uri)
Constructs a file path from afile:
URI.
-
-
-
フィールドの詳細
-
ERROR_NOT_FILE_URI
public static final java.lang.String ERROR_NOT_FILE_URI
Error string used when an invalid uri is seen- 関連項目:
- 定数フィールド値
-
-
メソッドの詳細
-
fromURI
public static java.lang.String fromURI(java.lang.String uri)
Constructs a file path from afile:
URI.Will be an absolute path if the given URI is absolute.
Prior to Java 1.4, swallows '%' that are not followed by two characters.
See dt-sysid which makes some mention of how characters not supported by URI Reference syntax should be escaped.- パラメータ:
uri
- the URI designating a file in the local filesystem.- 戻り値:
- the local file system path for the file.
- 例外:
java.lang.IllegalArgumentException
- if the URI is malformed or not a legal file: URL- 導入されたバージョン:
- Ant 1.6
-
decodeUri
public static java.lang.String decodeUri(java.lang.String uri) throws java.io.UnsupportedEncodingException
Decodes an Uri with % characters. The URI is escaped- パラメータ:
uri
- String with the uri possibly containing % characters.- 戻り値:
- The decoded Uri
- 例外:
java.io.UnsupportedEncodingException
- if UTF-8 is not available- 導入されたバージョン:
- Ant 1.7
-
-