Class 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

public class BatchFileTransformerPipe extends StreamTransformerPipe
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
  • Constructor Details Link icon

    • BatchFileTransformerPipe Link icon

      public BatchFileTransformerPipe()
      Deprecated.
  • Method Details Link icon

    • getStreamId Link icon

      protected String getStreamId(Message input, PipeLineSession session)
      Deprecated.
      Overrides:
      getStreamId in class StreamTransformerPipe
    • getInputStream Link icon

      protected InputStream getInputStream(String streamId, Message input, PipeLineSession session) throws PipeRunException
      Deprecated.
      Overrides:
      getInputStream in class StreamTransformerPipe
      Throws:
      PipeRunException
    • doPipe Link icon

      public PipeRunResult doPipe(Message input, PipeLineSession session) throws PipeRunException
      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 interface IPipe
      Overrides:
      doPipe in class StreamTransformerPipe
      Throws:
      PipeRunException
      See Also:
    • setMove2dirAfterTransform Link icon

      public void setMove2dirAfterTransform(String readyDir)
      Deprecated.
      Directory in which the transformed file(s) is stored
    • setMove2dirAfterError Link icon

      public void setMove2dirAfterError(String errorDir)
      Deprecated.
      Directory to which the inputfile is moved in case an error occurs
    • setNumberOfBackups Link icon

      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 Link icon

      public void setOverwrite(boolean b)
      Deprecated.
      If set true, the destination file will be deleted if it already exists
      Default value
      false
    • setDelete Link icon

      public void setDelete(boolean b)
      Deprecated.
      If set true, the file processed will be deleted after being processed, and not stored
      Default value
      false