public abstract class AbstractRecordHandler extends Object implements IRecordHandler, IWithParameters
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractRecordHandler.InputField |
Modifier and Type | Field and Description |
---|---|
protected org.apache.logging.log4j.Logger |
log |
protected ParameterList |
paramList |
Constructor and Description |
---|
AbstractRecordHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addInputField(int length) |
void |
addParameter(Parameter p) |
void |
close() |
void |
configure() |
protected int |
getNumberOfInputFields() |
ParameterList |
getParameterList() |
List<Integer> |
getRecordIdentifyingFieldList() |
String |
getRecordType(List<String> record) |
boolean |
isNewRecordType(PipeLineSession session,
boolean equalRecordHandlers,
List<String> prevRecord,
List<String> curRecord) |
void |
open() |
List<String> |
parse(PipeLineSession session,
String record)
Parse the line into an array of fields.
|
void |
registerChild(InputfieldsPart part)
Deprecated.
|
void |
registerInputFields(InputfieldsPart part) |
void |
setFieldsDifferConditionForPrefix(String fieldNrs)
Deprecated.
|
void |
setInputFields(String fieldLengths)
Comma separated specification of field lengths.
|
void |
setInputSeparator(String string)
Separator that separates the fields in the input record.
|
void |
setName(String string)
Name of the recordhandler
|
void |
setRecordIdentifyingFields(String fieldNrs)
comma separated list of numbers of those fields that are compared with the previous record to determine if a prefix must be written.
|
void |
setTrim(boolean b)
If set
true , trailing spaces are removed from each field |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleRecord
getName
getApplicationContext, getName
getConfigurationClassLoader
protected org.apache.logging.log4j.Logger log
protected ParameterList paramList
public void configure() throws ConfigurationException
configure
in interface IConfigurable
ConfigurationException
public void open() throws SenderException
open
in interface IRecordHandler
SenderException
public void close() throws SenderException
close
in interface IRecordHandler
SenderException
public void addInputField(int length)
@Deprecated public void registerChild(InputfieldsPart part)
public void registerInputFields(InputfieldsPart part)
protected int getNumberOfInputFields()
public List<String> parse(PipeLineSession session, String record)
IRecordHandler
parse
in interface IRecordHandler
public String getRecordType(List<String> record)
getRecordType
in interface IRecordHandler
public boolean isNewRecordType(PipeLineSession session, boolean equalRecordHandlers, List<String> prevRecord, List<String> curRecord)
isNewRecordType
in interface IRecordHandler
public void setRecordIdentifyingFields(String fieldNrs)
@Deprecated @ConfigurationWarning(value="The attribute \'fieldsDifferConditionForPrefix\' has been renamed \'recordIdentifyingFields\'") public void setFieldsDifferConditionForPrefix(String fieldNrs)
public void addParameter(Parameter p)
addParameter
in interface IWithParameters
public ParameterList getParameterList()
getParameterList
in interface IWithParameters
public void setName(String string)
setName
in interface INamedObject
public void setInputFields(String fieldLengths)
inputSeparator
is specified then the entire record is parsedpublic void setInputSeparator(String string)
inputFields
is specified then the entire record is parsedpublic void setTrim(boolean b)
true
, trailing spaces are removed from each fieldCopyright © 2023 Frank!Framework. All rights reserved.