mk.fsgrep.find
Class ScanProfile

java.lang.Object
  extended by mk.fsgrep.find.ScanProfile

public class ScanProfile
extends java.lang.Object

The representation of the set of files to search. It encapsulates the starting directory, and the set of suffixes of files to include.

Author:
Murali Krishnan

Constructor Summary
ScanProfile(java.io.File pFile, java.lang.String pPattern)
           
ScanProfile(java.lang.String pFullPattern)
           
ScanProfile(java.lang.String pFile, java.lang.String pPattern)
           
 
Method Summary
 java.lang.String createSpecification()
           
 java.lang.String getFilenameSpec()
           
 java.io.FilenameFilter getFilter()
           
 java.io.File getRoot()
           
protected static java.lang.String makeRegexpFromSuffix(java.lang.String pSuffix)
           
protected static java.lang.String makeRegexpFromSuffixList(java.lang.String pSuffixes)
           
protected  void setFilenameSpec(java.lang.String val)
           
protected  void setFilter(java.lang.String pPattern)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScanProfile

public ScanProfile(java.lang.String pFullPattern)

ScanProfile

public ScanProfile(java.io.File pFile,
                   java.lang.String pPattern)

ScanProfile

public ScanProfile(java.lang.String pFile,
                   java.lang.String pPattern)
Method Detail

makeRegexpFromSuffix

protected static java.lang.String makeRegexpFromSuffix(java.lang.String pSuffix)

makeRegexpFromSuffixList

protected static java.lang.String makeRegexpFromSuffixList(java.lang.String pSuffixes)

getRoot

public java.io.File getRoot()

getFilenameSpec

public java.lang.String getFilenameSpec()

getFilter

public java.io.FilenameFilter getFilter()

setFilenameSpec

protected void setFilenameSpec(java.lang.String val)

setFilter

protected void setFilter(java.lang.String pPattern)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

createSpecification

public java.lang.String createSpecification()


Copyright © 2009. All Rights Reserved.