cvj2.file.util
クラス FileOperationDelete

java.lang.Object
  上位を拡張 cvj2.file.util.FileOperationDelete

public class FileOperationDelete
extends java.lang.Object

ファイル削除。
(通知と書き込み禁止時の問い合わせあり)


入れ子のクラスの概要
static interface FileOperationDelete.Notify
          処理の通知と問い合わせ
 
コンストラクタの概要
FileOperationDelete(FileOperationDelete.Notify notify, FileOperationCanceller cancel)
          コンストラクタ
 
メソッドの概要
 int count(java.io.File[] files)
          ファイル処理数を数える
 boolean delete(java.io.File[] files)
          ファイルを削除する (ディレクトリがあれば再帰的に)
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

FileOperationDelete

public FileOperationDelete(FileOperationDelete.Notify notify,
                           FileOperationCanceller cancel)
コンストラクタ

メソッドの詳細

delete

public boolean delete(java.io.File[] files)
               throws java.io.IOException
ファイルを削除する (ディレクトリがあれば再帰的に)

戻り値:
途中でキャンセルされたら、false;
例外:
java.io.IOException

count

public int count(java.io.File[] files)
          throws java.io.IOException
ファイル処理数を数える

戻り値:
delete() を呼んだときに Notify で通知される数
例外:
java.io.IOException