public class ZipWriterSender extends CollectorSender<IZipWritingElement,ZipWriter> implements IZipWritingElement
parameterNamesMustBeUnique, paramList
log
Constructor and Description |
---|
ZipWriterSender() |
Modifier and Type | Method and Description |
---|---|
void |
configure()
configure() is called once at startup of the framework in the configure method of the owner of this sender. |
ZipWriter |
openCollection(Message input,
PipeLineSession session,
ParameterValueList pvl) |
void |
setCharset(String string)
Only for action='write': Charset used to write strings to zip entries
|
void |
setCloseInputstreamOnExit(boolean b)
Only for action='write': If set to
false , the inputstream is not closed after the zip entry is written |
void |
setCloseOutputstreamOnExit(boolean b)
Only for action='open': If set to
false , the outputstream is not closed after the zip creation is finished |
void |
setCloseStreamOnExit(boolean b)
Deprecated.
|
void |
setCompleteFileHeader(boolean b)
Only for action='write': If set to
true , the fields 'crc-32', 'compressed size' and 'uncompressed size' in the zip entry file header are set explicitly (note: compression ratio is zero) |
void |
setZipWriterHandle(String string)
Deprecated.
|
canProvideOutputStream, getAction, getCollection, provideOutputStream, sendMessage, setAction, setCollection
sendMessage, supportsOutputStreamPassThrough
addParameter, checkStringAttributeOrParameter, consumesSessionVariable, getParameterList, getParameterOverriddenAttributeValue, getParameterOverriddenAttributeValue, getParameterValueList
close, createBean, getLogPrefix, getName, isSynchronous, open, setApplicationContext, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCharset, isCloseInputstreamOnExit, isCloseOutputstreamOnExit, isCompleteFileHeader
getName, setName
getApplicationContext, getName
getConfigurationClassLoader
setApplicationContext
consumesSessionVariable
close, isSynchronous, open, sendMessageOrThrow
addParameter, getParameterList
public void configure() throws ConfigurationException
ISender
configure()
is called once at startup of the framework in the configure method of the owner of this sender.
Purpose of this method is to check whether the static configuration of the sender is correct.
As much as possible class-instantiating should take place in the configure()
or open()
method, to improve performance.configure
in interface IConfigurable
configure
in interface ISender
configure
in class CollectorSender<IZipWritingElement,ZipWriter>
ConfigurationException
public ZipWriter openCollection(Message input, PipeLineSession session, ParameterValueList pvl) throws CollectionException
openCollection
in interface ICollectingElement<ZipWriter>
CollectionException
public void setCloseInputstreamOnExit(boolean b)
false
, the inputstream is not closed after the zip entry is writtenpublic void setCloseOutputstreamOnExit(boolean b)
false
, the outputstream is not closed after the zip creation is finished@Deprecated @ConfigurationWarning(value="attribute \'closeStreamOnExit\' has been renamed to \'closeOutputstreamOnExit\'") public void setCloseStreamOnExit(boolean b)
public void setCharset(String string)
@Deprecated @ConfigurationWarning(value="Replaced with attribute collection") public void setZipWriterHandle(String string)
public void setCompleteFileHeader(boolean b)
true
, the fields 'crc-32', 'compressed size' and 'uncompressed size' in the zip entry file header are set explicitly (note: compression ratio is zero)Copyright © 2023 Frank!Framework. All rights reserved.