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
originalBlockKeyFields inherited from class org.frankframework.pipes.AbstractPipe
parameterNamesMustBeUniqueFields inherited from class org.frankframework.core.TransactionAttributes
logFields 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 InputStreamgetInputStream(String streamId, Message input, PipeLineSession session) Deprecated.protected StringgetStreamId(Message input, PipeLineSession session) Deprecated.voidsetDelete(boolean b) Deprecated.If settrue, the file processed will be deleted after being processed, and not storedvoidsetMove2dirAfterError(String errorDir) Deprecated.Directory to which the inputfile is moved in case an error occursvoidsetMove2dirAfterTransform(String readyDir) Deprecated.Directory in which the transformed file(s) is storedvoidsetNumberOfBackups(int i) Deprecated.Number of copies held of a file with the same name.voidsetOverwrite(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, stopMethods inherited from class org.frankframework.pipes.FixedForwardPipe
getParameterValue, setIfParam, setIfValue, setOnlyIfSessionKey, setOnlyIfValue, setSkipOnEmptyInput, setUnlessSessionKey, setUnlessValue, skipPipeMethods 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, throwEventMethods inherited from class org.frankframework.core.TransactionAttributes
configureTransactionAttributes, isTransacted, isTransacted, setTransacted, setTransactionTimeoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.frankframework.core.FrankElement
addConfigWarningMethods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoaderMethods inherited from interface org.frankframework.core.HasTransactionAttribute
getTransactionAttribute, getTransactionTimeout, getTxDef, setTransactionAttributeMethods inherited from interface org.frankframework.core.IForwardTarget
getNameMethods 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
-
BatchFileTransformerPipe
public BatchFileTransformerPipe()Deprecated.
-
-
Method Details
-
getStreamId
Deprecated.- Overrides:
getStreamIdin classStreamTransformerPipe
-
getInputStream
protected InputStream getInputStream(String streamId, Message input, PipeLineSession session) throws PipeRunException Deprecated.- Overrides:
getInputStreamin 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:
doPipein interfaceIPipe- Overrides:
doPipein 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
-