org.simBio.util
クラス FileHandler

java.lang.Object
  上位を拡張 org.simBio.util.FileHandler

public final class FileHandler
extends java.lang.Object

The tility class for file handling.

バージョン:
$Log: FileHandler.java,v $ Revision 1.2 2006/07/04 05:52:24 chiakioka changed log messages Revision 1.1 2005/11/01 06:32:39 mikaelwing First version of simBio hosted on sourceforge, version 0.3 Revision 1.3 2005/10/12 00:52:27 sarai debugging update Revision 1.2 2005/09/16 06:22:06 sarai getFile is moved to FileHandler
作成者:
Nobuaki Sarai

フィールドの概要
static java.lang.String DEFAULT_ENCODING
          default encoding
 
メソッドの概要
static java.io.File getBackup()
           
static java.io.File getFile(java.lang.String uri)
           
static java.io.File getNewFile(java.lang.String uri)
          get new File, the file, if already exist, will be renamed to the backup.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

DEFAULT_ENCODING

public static final java.lang.String DEFAULT_ENCODING
default encoding

関連項目:
定数フィールド値
メソッドの詳細

getNewFile

public static final java.io.File getNewFile(java.lang.String uri)
get new File, the file, if already exist, will be renamed to the backup.
file nameに存在しないdirectoryが含まれているときはdirectoryを作成する。 fileが存在するときは、それを*.bak[number].*にrenameすることを試みる。 失敗したら、新しいfile nameで作成したFileを返す。

パラメータ:
uri - file name to be a new File
戻り値:
new File

getBackup

public static final java.io.File getBackup()
戻り値:
Returns the backup.

getFile

public static final java.io.File getFile(java.lang.String uri)
パラメータ:
uri - file name
戻り値:
file parent directory will be made.


???(C) 2002-2007 ?????????????????????