public abstract class AbstractCrawlLister extends Object implements OFSNListHandler
OFSNListHandler
for generating file lists based on two
simple flags: recurse, and crawlForDirs, indicating to crawl for directories
rather than files.Modifier and Type | Field and Description |
---|---|
protected static FileFilter |
DIR_FILTER |
protected static FileFilter |
FILE_FILTER |
protected static Logger |
LOG |
Constructor and Description |
---|
AbstractCrawlLister() |
Modifier and Type | Method and Description |
---|---|
abstract void |
configure(Properties conf)
Configures this handler with the provided configuration stored in a
Properties object. |
protected File[] |
crawlFiles(File dirRoot,
boolean recur,
boolean crawlForDirs) |
abstract File[] |
getListing(String ofsn)
Handlers that implement this method take an
O nline
F ile S pecification N ame and return
back a listing of files on the remote server. |
protected static final Logger LOG
protected static final FileFilter FILE_FILTER
protected static final FileFilter DIR_FILTER
public abstract void configure(Properties conf)
OFSNListHandler
Properties
object.configure
in interface OFSNListHandler
conf
- The configuration for this list handler.public abstract File[] getListing(String ofsn) throws ProductException
OFSNListHandler
O
nline
F
ile S
pecification N
ame and return
back a listing of files on the remote server.getListing
in interface OFSNListHandler
ofsn
- The OFSN path to list files from.File
objects.ProductException
- If any error occurs performing the listing on the server side.Copyright © 1999-2015 Apache OODT. All Rights Reserved.