|
intra-mart(R) 6.0.13 | ||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object java.io.File jp.co.intra_mart.foundation.utility.file.Directory
jp.co.intra_mart.common.aid.jdk.java.io.file.Directory
クラスを使用してください。
このクラスは、ディレクトリを扱う時に便利な機能を提供します。
このクラスは java.io.File クラスをベースに、オブジェクトが表す抽象パスが
ディレクトリである場合に利用することができます。
フィールドの概要 |
クラス java.io.File から継承したフィールド |
pathSeparator, pathSeparatorChar, separator, separatorChar |
コンストラクタの概要 | |
Directory(File parent,
String child)
推奨されていません。 親抽象パス名および子パス名文字列から新しい File のインスタンスを 生成します。 |
|
Directory(String pathname)
推奨されていません。 指定されたパス名文字列を抽象パス名に変換して、 新しい File のインスタンスを生成します。 |
|
Directory(String parent,
String child)
推奨されていません。 親パス名文字列および子パス名文字列から 新しい File のインスタンスを生成します。 |
メソッドの概要 | |
Collection |
childDirectories()
推奨されていません。 この抽象パス名が示すディレクトリにあるサブディレクトリの抽象パスを 繰り返し処理する反復子を作成します。 |
Collection |
childFiles()
推奨されていません。 この抽象パス名が示すディレクトリにあるファイルの抽象パスを 繰り返し処理する反復子を作成します。 |
Collection |
files(int depth)
推奨されていません。 この抽象パス名が示すディレクトリにあるファイルの抽象パスを 繰り返し処理する反復子を作成します。 |
Collection |
paths(int depth)
推奨されていません。 この抽象パス名が示すディレクトリにあるファイルおよびディレクトリの 抽象パスを繰り返し処理する反復子を作成します。 |
クラス java.io.File から継承したメソッド |
canRead, canWrite, compareTo, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getName, getParent, getParentFile, getPath, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toString, toURI, toURL |
クラス java.lang.Object から継承したメソッド |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
public Directory(String pathname)
pathname
- パス名文字列
NullPointerException
- pathname 引数が null の場合
IllegalArgumentException
- 指定の抽象パスがファイルとして存在している場合File.File(File, String)
public Directory(File parent, String child)
parent が null の場合、新しい File のインスタンスは、 指定された child パス名文字列で単一引数の File コンストラクタを 呼び出したように生成されます。
そうでない場合、parent 抽象パス名はディレクトリを示し、 child パス名文字列はディレクトリまたはファイルを示します。 child パス名文字列が絶対の場合、 それはシステムに依存する方法で相対パス名に変換されます。 parent が空の抽象パス名の場合、新しい File のインスタンスは、 child を抽象パス名に変換し、その結果をシステムに依存する デフォルトディレクトリを基準に解決することで生成されます。 そうでない場合、各パス名文字列は抽象パス名に変換され、 子抽象パス名は親を基準に解決されます。
parent
- 親抽象パス名child
- 子パス名文字列
NullPointerException
- child が null の場合
IllegalArgumentException
- 指定の抽象パスがファイルとして存在している場合File.File(File, String)
public Directory(String parent, String child)
parent が null の場合、新しい File のインスタンスは、
指定された child パス名文字列で単一引数の File コンストラクタを
呼び出したように生成されます。
parent
- 親パス名文字列child
- 子パス名文字列
NullPointerException
- child が null の場合
IllegalArgumentException
- 指定の抽象パスがファイルとして存在している場合File.File(File, String)
メソッドの詳細 |
public Collection childDirectories()
public Collection childFiles()
public Collection paths(int depth)
depth
- 検索をするサブディレクトリの深さ
IllegalArgumentException
- depth 引数が 1 よりも小さい場合public Collection files(int depth)
depth
- 検索をするサブディレクトリの深さ
IllegalArgumentException
- depth 引数が 1 よりも小さい場合
|
intra-mart(R) 6.0.13 | ||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |