public class BeanIODataFormat
extends org.apache.camel.support.ServiceSupport
implements org.apache.camel.spi.DataFormat, org.apache.camel.CamelContextAware
DataFormat) for beanio data.| Constructor and Description |
|---|
BeanIODataFormat() |
BeanIODataFormat(String mapping,
String streamName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.CamelContext |
getCamelContext() |
Charset |
getEncoding() |
String |
getMapping() |
Properties |
getProperties() |
String |
getStreamName() |
boolean |
isIgnoreInvalidRecords() |
boolean |
isIgnoreUnexpectedRecords() |
boolean |
isIgnoreUnidentifiedRecords() |
void |
marshal(org.apache.camel.Exchange exchange,
Object body,
OutputStream stream) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setEncoding(Charset encoding) |
void |
setEncoding(String encoding) |
void |
setIgnoreInvalidRecords(boolean ignoreInvalidRecords) |
void |
setIgnoreUnexpectedRecords(boolean ignoreUnexpectedRecords) |
void |
setIgnoreUnidentifiedRecords(boolean ignoreUnidentifiedRecords) |
void |
setMapping(String mapping) |
void |
setProperties(Properties properties) |
void |
setStreamName(String streamName) |
Object |
unmarshal(org.apache.camel.Exchange exchange,
InputStream stream) |
protected void doStart()
throws Exception
doStart in class org.apache.camel.support.ServiceSupportExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.ServiceSupportExceptionpublic org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.CamelContextAwarepublic void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext in interface org.apache.camel.CamelContextAwarepublic void marshal(org.apache.camel.Exchange exchange,
Object body,
OutputStream stream)
throws Exception
marshal in interface org.apache.camel.spi.DataFormatExceptionpublic Object unmarshal(org.apache.camel.Exchange exchange, InputStream stream) throws Exception
unmarshal in interface org.apache.camel.spi.DataFormatExceptionpublic Charset getEncoding()
public void setEncoding(Charset encoding)
public void setEncoding(String encoding)
public boolean isIgnoreInvalidRecords()
public void setIgnoreInvalidRecords(boolean ignoreInvalidRecords)
public boolean isIgnoreUnexpectedRecords()
public void setIgnoreUnexpectedRecords(boolean ignoreUnexpectedRecords)
public boolean isIgnoreUnidentifiedRecords()
public void setIgnoreUnidentifiedRecords(boolean ignoreUnidentifiedRecords)
public String getMapping()
public void setMapping(String mapping)
public String getStreamName()
public void setStreamName(String streamName)
public Properties getProperties()
public void setProperties(Properties properties)
Apache Camel