@Dataformat(value="zipdeflater")
public class ZipDeflaterDataFormat
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.spi.DataFormat, org.apache.camel.spi.DataFormatName
| Constructor and Description |
|---|
ZipDeflaterDataFormat() |
ZipDeflaterDataFormat(int compressionLevel) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
int |
getCompressionLevel() |
String |
getDataFormatName() |
void |
marshal(org.apache.camel.Exchange exchange,
Object graph,
OutputStream stream) |
void |
setCompressionLevel(int compressionLevel) |
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, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic ZipDeflaterDataFormat()
public ZipDeflaterDataFormat(int compressionLevel)
public String getDataFormatName()
getDataFormatName in interface org.apache.camel.spi.DataFormatNamepublic int getCompressionLevel()
public void setCompressionLevel(int compressionLevel)
public void marshal(org.apache.camel.Exchange exchange,
Object graph,
OutputStream stream)
throws Exception
marshal in interface org.apache.camel.spi.DataFormatExceptionpublic Object unmarshal(org.apache.camel.Exchange exchange, InputStream inputStream) throws Exception
unmarshal in interface org.apache.camel.spi.DataFormatExceptionprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.service.BaseServiceExceptionApache Camel