public class AsciiFileHandler extends java.lang.Object implements FileHandlerIfc
Modifier and Type | Field and Description |
---|---|
protected AsciiFileDef |
asciiFileDef |
static java.lang.String |
CFG_FIELD_DELIMITER |
static java.lang.String |
CFG_RECORD_DELIMITER |
protected boolean |
errorFlag |
protected static java.lang.String |
FILENAME_NAR_ID |
protected int |
filesProcessed |
static java.lang.String |
INPUT_BACKUP_DIR |
protected LoggerIfc |
logger |
protected DCNode |
node |
protected static java.lang.String |
NPL_ASCII_DEF_FILE |
protected static java.lang.String |
NPL_FIELD_DELIMITER |
protected static java.lang.String |
NPL_RECORD_DELIMITER |
protected NPLFieldProcessor |
nplProcessor |
protected RecordProcessorIfc |
recordProcessor |
protected RecordProviderIfc |
recordProvider |
protected static java.lang.String |
RECOVERY_FILE_SUFFIX |
protected boolean |
running |
protected static java.lang.String |
UNICODE_TRANSFORMATION_FORMAT |
Constructor and Description |
---|
AsciiFileHandler(DCNode node,
NPLFieldProcessor nplProcessor) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInputBackupDir() |
protected RecordProcessorIfc |
getRecordProcessor() |
protected RecordProviderIfc |
getRecordProvider() |
boolean |
isRejected() |
boolean |
processFile(java.io.File file) |
void |
setErrorFlag() |
void |
shutdown() |
public static final java.lang.String CFG_FIELD_DELIMITER
public static final java.lang.String CFG_RECORD_DELIMITER
protected static final java.lang.String NPL_FIELD_DELIMITER
protected static final java.lang.String NPL_RECORD_DELIMITER
protected static final java.lang.String NPL_ASCII_DEF_FILE
public static final java.lang.String INPUT_BACKUP_DIR
protected static final java.lang.String RECOVERY_FILE_SUFFIX
protected static final java.lang.String FILENAME_NAR_ID
protected static final java.lang.String UNICODE_TRANSFORMATION_FORMAT
protected LoggerIfc logger
protected DCNode node
protected NPLFieldProcessor nplProcessor
protected AsciiFileDef asciiFileDef
protected RecordProviderIfc recordProvider
protected RecordProcessorIfc recordProcessor
protected boolean running
protected boolean errorFlag
protected int filesProcessed
public AsciiFileHandler(DCNode node, NPLFieldProcessor nplProcessor) throws java.lang.Exception
java.lang.Exception
protected RecordProviderIfc getRecordProvider()
protected RecordProcessorIfc getRecordProcessor()
public boolean processFile(java.io.File file) throws java.lang.Exception
processFile
in interface FileHandlerIfc
java.lang.Exception
public java.lang.String getInputBackupDir()
public void setErrorFlag()
setErrorFlag
in interface FileHandlerIfc
public void shutdown()
shutdown
in interface FileHandlerIfc
public boolean isRejected()