Class Result2Filewriter

All Implemented Interfaces:
IResultHandler, FrankElement, HasApplicationContext, HasName, IConfigurable, IScopeProvider, IWithParameters, NameAware, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class Result2Filewriter extends ResultWriter
Deprecated.
Warning: non-maintained functionality.
Resulthandler that writes the transformed record to a file.
Author:
John Dekker
  • Constructor Details

    • Result2Filewriter

      public Result2Filewriter()
      Deprecated.
  • Method Details

    • createWriter

      protected Writer createWriter(PipeLineSession session, String streamId) throws Exception
      Deprecated.
      Specified by:
      createWriter in class ResultWriter
      Throws:
      Exception
    • closeDocument

      public void closeDocument(PipeLineSession session, String streamId)
      Deprecated.
      Specified by:
      closeDocument in interface IResultHandler
      Overrides:
      closeDocument in class ResultWriter
    • finalizeResult

      public String finalizeResult(PipeLineSession session, String streamId, boolean error) throws Exception
      Deprecated.
      Description copied from interface: IResultHandler
      Called when all records in the original file are handled.
      Specified by:
      finalizeResult in interface IResultHandler
      Overrides:
      finalizeResult in class ResultWriter
      Parameters:
      session - current PipeLineSession
      streamId - identification of the original file/stream/message containing the untransformed records
      Returns:
      the name or names of the output files
      Throws:
      Exception
    • setOutputDirectory

      public void setOutputDirectory(String string)
      Deprecated.
      Directory in which the resultfile must be stored
    • setMove2dirAfterFinalize

      public void setMove2dirAfterFinalize(String string)
      Deprecated.
      Directory to which the created file must be moved after finalization (is optional)
    • setFilenamePattern

      public void setFilenamePattern(String string)
      Deprecated.
      Name of the file is created using the messageformat. Params: 1=inputfilename, 2=extension of file, 3=current date