jp.ne.mki.wedge.pub.vfunit.util
クラス FileUtil

java.lang.Object
  上位を拡張 jp.ne.mki.wedge.pub.vfunit.util.FileUtil

public class FileUtil
extends java.lang.Object

ファイル操作のライブラリ。

作成者:
kanbayashi

コンストラクタの概要
FileUtil()
           
 
メソッドの概要
static java.io.File getFileObject(java.lang.String path)
          Fileオブジェクトを取得。
static org.xml.sax.InputSource getInputSource(java.lang.String path)
          パスからInputSourceを取得する。
static java.io.InputStream getInputStream(java.lang.String path)
          パスからInputStreamを取得する。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

FileUtil

public FileUtil()
メソッドの詳細

getInputStream

public static java.io.InputStream getInputStream(java.lang.String path)
                                          throws java.lang.Exception
パスからInputStreamを取得する。 resource: から始まる場合には リソースから、 http: から始まる場合には URLから、 file: や 上記以外の場合には ファイル読込 を行います。

パラメータ:
path -
戻り値:
例外:
java.lang.Exception

getInputSource

public static org.xml.sax.InputSource getInputSource(java.lang.String path)
パスからInputSourceを取得する。 resource: から始まる場合には リソースからInputStream を読み込み、 それ以外は 指定PathをSystemIDにしてInputSourceを作成します。

パラメータ:
path -
戻り値:
例外:
java.lang.Exception

getFileObject

public static java.io.File getFileObject(java.lang.String path)
Fileオブジェクトを取得。 file:// からはじまる ものは その指定を外して Fileオブジェクトを作成します。 存在しなかった場合には nullを返します。

パラメータ:
path -
戻り値:
例外:
java.lang.Exception