Class FtpFileSearchWithComparator
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.source.filesystemsearch.AbstractFileSystemSearchlet
-
- adams.flow.source.filesystemsearch.AbstractFtpDirectoryListerBasedSearchlet
-
- adams.flow.source.filesystemsearch.FtpDirectorySearchWithComparator
-
- adams.flow.source.filesystemsearch.FtpFileSearchWithComparator
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,QuickInfoSupporter
,ShallowCopySupporter<AbstractFileSystemSearchlet>
,SizeOfHandler
,Stoppable
,StoppableWithFeedback
,FlowContextHandler
,Serializable
public class FtpFileSearchWithComparator extends FtpDirectorySearchWithComparator
Searches only for files, but uses the comparator for sorting the files (FTP).
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-directory <java.lang.String> (property: directory) The directory to search for directories. default: /pub
-regexp <adams.core.base.BaseRegExp> (property: regExp) The regular expression that the dirs must match (empty string matches all ). default:
-max-items <int> (property: maxItems) The maximum number of dirs to return (<= 0 is unlimited). default: -1
-comparator <java.util.Comparator> (property: comparator) The comparator to use; must implement java.util.Comparator and java.io.Serializable default: adams.core.DefaultCompare
-descending <boolean> (property: sortDescending) If set to true, the directories are sorted in descending manner. default: false
-recursive <boolean> (property: recursive) Whether to search recursively or not. default: false
-max-depth <int> (property: maxDepth) The maximum depth to search in recursive mode (1 = only search directory, -1 = infinite). default: -1
- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.flow.source.filesystemsearch.FtpDirectorySearchWithComparator
m_Comparator, m_Descending
-
Fields inherited from class adams.flow.source.filesystemsearch.AbstractFtpDirectoryListerBasedSearchlet
m_Lister
-
Fields inherited from class adams.flow.source.filesystemsearch.AbstractFileSystemSearchlet
m_FlowContext, m_Stopped
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description FtpFileSearchWithComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
globalInfo()
Returns a string describing the object.protected void
initialize()
Initializes the members.-
Methods inherited from class adams.flow.source.filesystemsearch.FtpDirectorySearchWithComparator
comparatorTipText, defineOptions, directoryTipText, doSearch, getComparator, getDirectory, getMaxDepth, getMaxItems, getQuickInfo, getRecursive, getRegExp, getSortDescending, maxDepthTipText, maxItemsTipText, recursiveTipText, regExpTipText, setComparator, setDirectory, setMaxDepth, setMaxItems, setRecursive, setRegExp, setSortDescending, sortDescendingTipText
-
Methods inherited from class adams.flow.source.filesystemsearch.AbstractFtpDirectoryListerBasedSearchlet
check, setLoggingLevel, stopExecution
-
Methods inherited from class adams.flow.source.filesystemsearch.AbstractFileSystemSearchlet
getFlowContext, isStopped, search, setFlowContext, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, loggingLevelTipText, newOptionManager, reset, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Overrides:
globalInfo
in classFtpDirectorySearchWithComparator
- Returns:
- a description suitable for displaying in the gui
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initialize
in classFtpDirectorySearchWithComparator
-
-