Package org.frankframework.batch
Class FixedPositionRecordHandlerManager
java.lang.Object
org.frankframework.batch.RecordHandlerManager
org.frankframework.batch.FixedPositionRecordHandlerManager
- All Implemented Interfaces:
IRecordHandlerManager
,HasName
,NameAware
Deprecated.
Warning: non-maintained functionality.
Manager that decides the handlers based on the content of a field in the specified
position in a record. The fields in the record are of a fixed length.
The data beween the start position and end position is taken as key in the flow-table.
- Author:
- John Dekker
-
Field Summary
Fields inherited from class org.frankframework.batch.RecordHandlerManager
log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.getFullRecord
(BufferedReader reader, RecordHandlingFlow flow, String firstPart) Deprecated.getRecordHandler
(PipeLineSession session, String record) Deprecated.void
setEndPosition
(int i) Deprecated.If endPosition >= 0 then this field contains the endPosition (Java style, i.e the position of the next character) of the recordtype field in the record; All characters beyond this position are ignored.void
setNewLineSeparated
(boolean value) Deprecated.Iffalse
, no newlines are expected, all records of the size specified in the flows are read from a single 'line'.void
setStartPosition
(int i) Deprecated.Start position of the field in the record that identifies the recordtype (first character is 0)Methods inherited from class org.frankframework.batch.RecordHandlerManager
addHandler, configure, getFlowMap, getRecordFactoryUsingFilename, getRecordHandlerByKey, setInitial, setName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.frankframework.batch.IRecordHandlerManager
isInitial
-
Constructor Details
-
FixedPositionRecordHandlerManager
public FixedPositionRecordHandlerManager()Deprecated.
-
-
Method Details
-
getRecordHandler
Deprecated.- Specified by:
getRecordHandler
in interfaceIRecordHandlerManager
- Overrides:
getRecordHandler
in classRecordHandlerManager
- Returns:
- the RecordHandlingFlow element to be used to handle the record
- Throws:
Exception
-
getFirstPartOfNextRecord
Deprecated.- Specified by:
getFirstPartOfNextRecord
in interfaceIRecordHandlerManager
- Overrides:
getFirstPartOfNextRecord
in classRecordHandlerManager
- Returns:
- the first part of the next record, containing at least the key
- Throws:
IOException
-
getFullRecord
public String getFullRecord(BufferedReader reader, RecordHandlingFlow flow, String firstPart) throws IOException Deprecated.- Specified by:
getFullRecord
in interfaceIRecordHandlerManager
- Overrides:
getFullRecord
in classRecordHandlerManager
- Returns:
- expand the first part to the full record
- Throws:
IOException
-
setStartPosition
public void setStartPosition(int i) Deprecated.Start position of the field in the record that identifies the recordtype (first character is 0)- Default value
- 0
-
setEndPosition
public void setEndPosition(int i) Deprecated.If endPosition >= 0 then this field contains the endPosition (Java style, i.e the position of the next character) of the recordtype field in the record; All characters beyond this position are ignored. Else, if endPosition < 0 then it depends on the length of the recordkey in the flow- Default value
- -1
-
setNewLineSeparated
public void setNewLineSeparated(boolean value) Deprecated.Iffalse
, no newlines are expected, all records of the size specified in the flows are read from a single 'line'.- Default value
- true
-