public class Result2Filewriter extends ResultWriter
log, paramList
Constructor and Description |
---|
Result2Filewriter() |
Modifier and Type | Method and Description |
---|---|
void |
closeDocument(PipeLineSession session,
String streamId) |
protected Writer |
createWriter(PipeLineSession session,
String streamId) |
String |
finalizeResult(PipeLineSession session,
String streamId,
boolean error)
Called when all records in the original file are handled.
|
void |
setFilenamePattern(String string)
Name of the file is created using the messageformat.
|
void |
setMove2dirAfterFinalize(String string)
Directory to which the created file must be moved after finalization (is optional)
|
void |
setOutputDirectory(String string)
Directory in which the resultfile must be stored
|
closeBlock, closeRecordType, getWriter, handleResult, openBlock, openDocument, openRecordType, replacePattern, setBlockNamePattern, setOnCloseBlock, setOnCloseDocument, setOnOpenBlock, setOnOpenDocument, writeNewLine
addParameter, close, configure, getParameterList, hasPrefix, isDefault, open, setBlockByRecordType, setDefault, setName, setPipe, setPrefix, setSuffix
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isBlockByRecordType
getName
getApplicationContext, getName
getConfigurationClassLoader
protected Writer createWriter(PipeLineSession session, String streamId) throws Exception
createWriter
in class ResultWriter
Exception
public void closeDocument(PipeLineSession session, String streamId)
closeDocument
in interface IResultHandler
closeDocument
in class ResultWriter
public String finalizeResult(PipeLineSession session, String streamId, boolean error) throws Exception
IResultHandler
finalizeResult
in interface IResultHandler
finalizeResult
in class ResultWriter
session
- current PipeLineSessionstreamId
- identification of the original file/stream/message containing the untransformed recordsException
public void setOutputDirectory(String string)
public void setMove2dirAfterFinalize(String string)
public void setFilenamePattern(String string)
Copyright © 2023 Frank!Framework. All rights reserved.