org.seasar.jface.util
クラス PathUtil
java.lang.Object
org.seasar.jface.util.PathUtil
public class PathUtil
- extends Object
- 作成者:
- y-komori
| クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PathUtil
public PathUtil()
createPath
public static String createPath(String basePath,
String relPath)
- 与えられた基準パスと相対パスから絶対パスを生成します。
- パス中の
\ はすべて / に変換します。
- 基本動作として
basePath と relPath
を連結した文字列を返します。
- この際、
basePath が / で終了していない場合、/
を付加します。
relPath が / から始まる場合、relPath
が絶対パスを表していると見なして、basePath は無視されます。
basePath が relPath の先頭に含まれる場合、basePath
は無視されます。
- パラメータ:
basePath - 基準パスrelPath - 相対パス
- 戻り値:
- 生成したパス
replaceSeparator
protected static String replaceSeparator(String path)
Copyright © 2006 The Seasar Foundation. All Rights Reserved.