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
Online
File Specification Name 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)
OFSNListHandlerProperties object.configure in interface OFSNListHandlerconf - The configuration for this list handler.public abstract File[] getListing(String ofsn) throws ProductException
OFSNListHandlerOnline
File Specification Name and return
back a listing of files on the remote server.getListing in interface OFSNListHandlerofsn - The OFSN path to list files from.File objects.ProductException - If any error occurs performing the listing on the server side.Copyright © 1999-2014 Apache OODT. All Rights Reserved.