public class GzipDataFormat extends Object implements DataFormat
Constructor and Description |
---|
GzipDataFormat() |
Modifier and Type | Method and Description |
---|---|
void |
marshal(Exchange exchange,
Object graph,
OutputStream stream)
Marshals the object to the given Stream.
|
Object |
unmarshal(Exchange exchange,
InputStream stream)
Unmarshals the given stream into an object.
|
public GzipDataFormat()
public void marshal(Exchange exchange, Object graph, OutputStream stream) throws Exception
DataFormat
marshal
in interface DataFormat
exchange
- 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
DataFormat
Message
object as well which will be used as the OUT message of exchange.unmarshal
in interface DataFormat
exchange
- the current exchangestream
- the input stream with the object to be unmarshalledException
- can be thrownApache Camel