@Dataformat(value="zipfile")
public class ZipFileDataFormat
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.spi.DataFormat, org.apache.camel.spi.DataFormatName
org.apache.camel.model.dataformat.ZipDataFormat
for "deflate" compression.Constructor and Description |
---|
ZipFileDataFormat() |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart() |
protected void |
doStop() |
String |
getDataFormatName() |
long |
getMaxDecompressedSize() |
boolean |
isAllowEmptyDirectory() |
boolean |
isPreservePathElements() |
boolean |
isUsingIterator() |
void |
marshal(org.apache.camel.Exchange exchange,
Object graph,
OutputStream stream) |
void |
setAllowEmptyDirectory(boolean allowEmptyDirectory) |
void |
setMaxDecompressedSize(long maxDecompressedSize) |
void |
setPreservePathElements(boolean preservePathElements) |
void |
setUsingIterator(boolean usingIterator) |
Object |
unmarshal(org.apache.camel.Exchange exchange,
InputStream inputStream) |
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public String getDataFormatName()
getDataFormatName
in interface org.apache.camel.spi.DataFormatName
public void marshal(org.apache.camel.Exchange exchange, Object graph, OutputStream stream) throws Exception
marshal
in interface org.apache.camel.spi.DataFormat
Exception
public Object unmarshal(org.apache.camel.Exchange exchange, InputStream inputStream) throws Exception
unmarshal
in interface org.apache.camel.spi.DataFormat
Exception
public boolean isUsingIterator()
public void setUsingIterator(boolean usingIterator)
public boolean isAllowEmptyDirectory()
public void setAllowEmptyDirectory(boolean allowEmptyDirectory)
public boolean isPreservePathElements()
public void setPreservePathElements(boolean preservePathElements)
public long getMaxDecompressedSize()
public void setMaxDecompressedSize(long maxDecompressedSize)
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.service.BaseService
Exception
Apache Camel