Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.thermidor.build.tasks
Class InstallTask.BackupFilenameFilter  view InstallTask.BackupFilenameFilter download InstallTask.BackupFilenameFilter.java

java.lang.Object
  extended bycom.thermidor.build.tasks.InstallTask.BackupFilenameFilter
All Implemented Interfaces:
java.io.FilenameFilter
Enclosing class:
InstallTask

public static class InstallTask.BackupFilenameFilter
extends java.lang.Object
implements java.io.FilenameFilter

The BackupFilenameFilter is used to retrieve all numbered backups of a particular filename.

Version:
1.0

Field Summary
private  java.lang.String _fileName
          The file name for which backups should be found.
private  gnu.regexp.RE _regexp
          The regexp object that will be use in the filtering.
 
Constructor Summary
InstallTask.BackupFilenameFilter(java.lang.String fileName)
          Construct a new instance of a BackupFilenameFilter for the specified filename.
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String name)
          Should the specified file be included in the list.
 int backupNumber(java.lang.String name)
          This utility operation is provided to allow the backup number to be retrieved from the name of a file that has been basked up under the numbered backup scheme.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_regexp

private gnu.regexp.RE _regexp
The regexp object that will be use in the filtering.


_fileName

private java.lang.String _fileName
The file name for which backups should be found.

Constructor Detail

InstallTask.BackupFilenameFilter

public InstallTask.BackupFilenameFilter(java.lang.String fileName)
                                 throws java.io.IOException
Construct a new instance of a BackupFilenameFilter for the specified filename.

Method Detail

accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
Should the specified file be included in the list.

Specified by:
accept in interface java.io.FilenameFilter

backupNumber

public int backupNumber(java.lang.String name)
This utility operation is provided to allow the backup number to be retrieved from the name of a file that has been basked up under the numbered backup scheme.