Package org.frankframework.batch
Class BatchFileTransformerPipe
java.lang.Object
org.frankframework.core.TransactionAttributes
org.frankframework.pipes.AbstractPipe
org.frankframework.pipes.FixedForwardPipe
org.frankframework.batch.StreamTransformerPipe
org.frankframework.batch.BatchFileTransformerPipe
- All Implemented Interfaces:
FrankElement
,HasApplicationContext
,HasName
,HasTransactionAttribute
,IConfigurable
,IForwardTarget
,IPipe
,IScopeProvider
,IWithParameters
,NameAware
,EventThrowing
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.context.Lifecycle
Deprecated.
Warning: non-maintained functionality.
Pipe for transforming a (batch)file with records. Records in the file must be separated
with new line characters.
You can use the <child> tag to register RecordHandlers, RecordHandlerManagers, ResultHandlers
and RecordHandlingFlow elements. This is deprecated, however. Since 4.7 one should use <manager>,
<recordHandler>, <resultHandler> and <flow>
For files containing only a single type of lines, a simpler configuration without managers and flows
can be specified. A single recordHandler with key="*" and (optional) a single resultHandler need to be specified.
Each line will be handled by this recordHandler and resultHandler.
- Author:
- John Dekker
-
Field Summary
Fields inherited from class org.frankframework.batch.StreamTransformerPipe
originalBlockKey
Fields inherited from class org.frankframework.pipes.AbstractPipe
parameterNamesMustBeUnique
Fields inherited from class org.frankframework.core.TransactionAttributes
log
Fields inherited from interface org.frankframework.core.IPipe
LONG_DURATION_MONITORING_EVENT, MESSAGE_SIZE_MONITORING_EVENT, PIPE_EXCEPTION_MONITORING_EVENT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoPipe
(Message input, PipeLineSession session) Deprecated.Open a reader for the file named according the input message and transform it.protected InputStream
getInputStream
(String streamId, Message input, PipeLineSession session) Deprecated.protected String
getStreamId
(Message input, PipeLineSession session) Deprecated.void
setDelete
(boolean b) Deprecated.If settrue
, the file processed will be deleted after being processed, and not storedvoid
setMove2dirAfterError
(String errorDir) Deprecated.Directory to which the inputfile is moved in case an error occursvoid
setMove2dirAfterTransform
(String readyDir) Deprecated.Directory in which the transformed file(s) is storedvoid
setNumberOfBackups
(int i) Deprecated.Number of copies held of a file with the same name.void
setOverwrite
(boolean b) Deprecated.If settrue
, the destination file will be deleted if it already existsMethods inherited from class org.frankframework.batch.StreamTransformerPipe
addChild, addChild, addChild, addChild, addManager, addRecordHandler, addResultHandler, closeAllBlocks, configure, getManager, getReader, getRecordHandler, getResultHandler, setCharset, setCloseInputstreamOnExit, setReaderFactory, setStoreOriginalBlock, start, stop
Methods inherited from class org.frankframework.pipes.FixedForwardPipe
getParameterValue, setIfParam, setIfValue, setOnlyIfSessionKey, setOnlyIfValue, setSkipOnEmptyInput, setUnlessSessionKey, setUnlessValue, skipPipe
Methods inherited from class org.frankframework.pipes.AbstractPipe
addForward, addParameter, consumesSessionVariable, createBean, findForward, getAdapter, getEventSourceName, getForwards, getParameterList, hasRegisteredForward, isRunning, registerEvent, setApplicationContext, setChompCharSize, setDurationThreshold, setElementToMove, setElementToMoveChain, setElementToMoveSessionKey, setEmptyInputReplacement, setGetInputFromFixedValue, setGetInputFromSessionKey, setHideRegex, setLocker, setLogIntermediaryResults, setMaxThreads, setName, setPreserveInput, setRemoveCompactMsgNamespaces, setRestoreMovedElements, setSecLogSessionKeys, setSizeStatistics, setStoreResultInSessionKey, setWriteToSecLog, sizeStatisticsEnabled, throwEvent
Methods inherited from class org.frankframework.core.TransactionAttributes
configureTransactionAttributes, isTransacted, isTransacted, setTransacted, setTransactionTimeout
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoader
Methods inherited from interface org.frankframework.core.HasTransactionAttribute
getTransactionAttribute, getTransactionTimeout, getTxDef, setTransactionAttribute
Methods inherited from interface org.frankframework.core.IForwardTarget
getName
Methods inherited from interface org.frankframework.core.IPipe
getChompCharSize, getDurationThreshold, getElementToMove, getElementToMoveChain, getElementToMoveSessionKey, getEmptyInputReplacement, getGetInputFromFixedValue, getGetInputFromSessionKey, getHideRegex, getLocker, getLogIntermediaryResults, getMaxThreads, getSecLogSessionKeys, getStoreResultInSessionKey, isPreserveInput, isRemoveCompactMsgNamespaces, isRestoreMovedElements, isWriteToSecLog, setPipeLine, throwEvent
-
Constructor Details
-
Method Details
-
getStreamId
Deprecated.- Overrides:
getStreamId
in classStreamTransformerPipe
-
getInputStream
protected InputStream getInputStream(String streamId, Message input, PipeLineSession session) throws PipeRunException Deprecated.- Overrides:
getInputStream
in classStreamTransformerPipe
- Throws:
PipeRunException
-
doPipe
Deprecated.Open a reader for the file named according the input message and transform it. Move the input file to a done directory when transformation is finished and return the names of the generated files.- Specified by:
doPipe
in interfaceIPipe
- Overrides:
doPipe
in classStreamTransformerPipe
- Throws:
PipeRunException
- See Also:
-
setMove2dirAfterTransform
Deprecated.Directory in which the transformed file(s) is stored -
setMove2dirAfterError
Deprecated.Directory to which the inputfile is moved in case an error occurs -
setNumberOfBackups
public void setNumberOfBackups(int i) Deprecated.Number of copies held of a file with the same name. Backup files have a dot and a number suffixed to their name. If set to 0, no backups will be kept.- Default value
- 5
-
setOverwrite
public void setOverwrite(boolean b) Deprecated.If settrue
, the destination file will be deleted if it already exists- Default value
- false
-
setDelete
public void setDelete(boolean b) Deprecated.If settrue
, the file processed will be deleted after being processed, and not stored- Default value
- false
-