|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataFormat
Represents a data format used to marshal objects to and from streams such as Java Serialization or using JAXB2 to encode/decode objects using XML or using SOAP encoding.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
void marshal(Exchange exchange,
Object graph,
OutputStream stream)
throws Exception
exchange - the current exchangegraph - the object to be marshalledstream - the output stream to write the marshalled rersult to
Exception - can be thrown
Object unmarshal(Exchange exchange,
InputStream stream)
throws Exception
exchange - the current exchangestream - the input stream with the object to be unmarshalled
Exception - can be thrown
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||