public class ZipDataFormat extends Object implements DataFormat
ZipFileDataFormat for Zip file compression.| Constructor and Description |
|---|
ZipDataFormat() |
ZipDataFormat(int compressionLevel) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCompressionLevel() |
void |
marshal(Exchange exchange,
Object graph,
OutputStream stream)
Marshals the object to the given Stream.
|
void |
setCompressionLevel(int compressionLevel) |
Object |
unmarshal(Exchange exchange,
InputStream stream)
Unmarshals the given stream into an object.
|
public ZipDataFormat()
public ZipDataFormat(int compressionLevel)
public int getCompressionLevel()
public void setCompressionLevel(int compressionLevel)
public void marshal(Exchange exchange, Object graph, OutputStream stream) throws Exception
DataFormatmarshal in interface DataFormatexchange - the current exchangegraph - the object to be marshalledstream - the output stream to write the marshalled result toException - can be thrownpublic Object unmarshal(Exchange exchange, InputStream stream) throws Exception
DataFormatMessage object as well which will be used as the OUT message of exchange.unmarshal in interface DataFormatexchange - the current exchangestream - the input stream with the object to be unmarshalledException - can be thrownApache Camel