public class BaseScanListener extends Object implements ScanListener
| Modifier and Type | Field and Description |
|---|---|
protected File |
m_fileSource |
protected RecordOwnerParent |
m_parent |
protected RecordOwnerCollection |
m_recordOwnerCollection |
protected String |
m_strSourcePrefix |
protected PrintWriter |
m_writer |
| Constructor and Description |
|---|
BaseScanListener()
Default constructor.
|
BaseScanListener(RecordOwnerParent parent,
String strSourcePrefix)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addRecordOwner(RecordOwnerParent recordOwner)
Add this record owner to my list.
|
String |
convertString(String string)
Do any string conversion on the file text.
|
boolean |
filterDirectory(File file)
If this file should be processed, return true.
|
boolean |
filterFile(File file)
If this file should be processed, return true.
|
void |
free()
Free Method.
|
Map<String,Object> |
getProperties()
GetProperties Method.
|
String |
getProperty(String strProperty)
Get this property (from my parent ConvertCode class).
|
Task |
getTask()
GetTask Method.
|
void |
init(RecordOwnerParent parent,
String strSourcePrefix)
Init Method.
|
void |
moveSourceToDest(LineNumberReader reader,
PrintWriter dataOut)
MoveSourceToDest Method.
|
void |
moveThisFile(File fileSource,
File fileDestDir,
String strDestName)
Do whatever processing that needs to be done on this file.
|
void |
moveThisFile(LineNumberReader reader,
File fileDestDir,
String strDestName)
MoveThisFile Method.
|
void |
postProcessThisDirectory(File fileDir,
Object objDirID)
Do whatever processing that needs to be done on this directory.
|
Object |
processThisDirectory(File fileDir,
Object objDirID)
Do whatever processing that needs to be done on this directory.
|
boolean |
removeRecordOwner(RecordOwnerParent recordOwner)
Remove this record owner to my list.
|
PropertyOwner |
retrieveUserProperties(String strRegistrationKey)
RetrieveUserProperties Method.
|
void |
setPrintWriter(PrintWriter writer)
SetPrintWriter Method.
|
void |
setProperties(Map<String,Object> properties)
SetProperties Method.
|
void |
setProperty(String strProperty,
String strValue)
SetProperty Method.
|
void |
setSourceFile(File fileSource)
SetSourceFile Method.
|
protected File m_fileSource
protected RecordOwnerParent m_parent
protected String m_strSourcePrefix
protected PrintWriter m_writer
protected RecordOwnerCollection m_recordOwnerCollection
public BaseScanListener()
public BaseScanListener(RecordOwnerParent parent, String strSourcePrefix)
public void init(RecordOwnerParent parent, String strSourcePrefix)
public boolean filterDirectory(File file)
filterDirectory in interface ScanListenerpublic Object processThisDirectory(File fileDir, Object objDirID)
processThisDirectory in interface ScanListenerobjDirID - The parent object idpublic void postProcessThisDirectory(File fileDir, Object objDirID)
postProcessThisDirectory in interface ScanListenerobjDirID - The parent object idpublic boolean filterFile(File file)
filterFile in interface ScanListenerpublic void setSourceFile(File fileSource)
public void moveThisFile(File fileSource, File fileDestDir, String strDestName)
moveThisFile in interface ScanListenerpublic void moveThisFile(LineNumberReader reader, File fileDestDir, String strDestName)
public void setPrintWriter(PrintWriter writer)
public void moveSourceToDest(LineNumberReader reader, PrintWriter dataOut)
public String getProperty(String strProperty)
getProperty in interface PropertyOwnerstrProperty - the property keypublic Map<String,Object> getProperties()
getProperties in interface PropertyOwnerpublic PropertyOwner retrieveUserProperties(String strRegistrationKey)
retrieveUserProperties in interface PropertyOwnerpublic void setProperties(Map<String,Object> properties)
setProperties in interface PropertyOwnerpublic void setProperty(String strProperty, String strValue)
setProperty in interface PropertyOwnerpublic Task getTask()
getTask in interface RecordOwnerParentpublic boolean addRecordOwner(RecordOwnerParent recordOwner)
addRecordOwner in interface RecordOwnerParentrecordOwner - The record owner to add.public boolean removeRecordOwner(RecordOwnerParent recordOwner)
removeRecordOwner in interface RecordOwnerParentrecordOwner - The record owner to remove.Copyright © 2015 jbundle.org. All Rights Reserved.