|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.dataformat.bindy.kvp.BindyKeyValuePairDataFormat
public class BindyKeyValuePairDataFormat
A data format (
DataFormat) using Bindy to marshal to and from CSV files
| Constructor Summary | |
|---|---|
BindyKeyValuePairDataFormat()
|
|
BindyKeyValuePairDataFormat(String... packages)
|
|
| Method Summary | |
|---|---|
BindyKeyValuePairFactory |
getFactory(PackageScanClassResolver resolver)
Method used to create the singleton of the BindyKeyValuePairFactory |
String[] |
getPackages()
|
void |
marshal(Exchange exchange,
Object body,
OutputStream outputStream)
Marshals the object to the given Stream. |
void |
setModelFactory(BindyKeyValuePairFactory modelFactory)
|
void |
setPackages(String... packages)
|
Object |
unmarshal(Exchange exchange,
InputStream inputStream)
Unmarshals the given stream into an object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BindyKeyValuePairDataFormat()
public BindyKeyValuePairDataFormat(String... packages)
| Method Detail |
|---|
public void marshal(Exchange exchange,
Object body,
OutputStream outputStream)
throws Exception
DataFormat
marshal in interface DataFormatexchange - the current exchangebody - the object to be marshalledoutputStream - the output stream to write the marshalled result to
Exception - can be thrown
public Object unmarshal(Exchange exchange,
InputStream inputStream)
throws Exception
DataFormat
unmarshal in interface DataFormatexchange - the current exchangeinputStream - the input stream with the object to be unmarshalled
Exception - can be thrown
public BindyKeyValuePairFactory getFactory(PackageScanClassResolver resolver)
throws Exception
Exceptionpublic void setModelFactory(BindyKeyValuePairFactory modelFactory)
public String[] getPackages()
public void setPackages(String... packages)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||