public class BeanIODataFormat
extends org.apache.camel.support.ServiceSupport
implements org.apache.camel.spi.DataFormat, org.apache.camel.spi.DataFormatName, 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() |
String |
getDataFormatName() |
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) |
public String getDataFormatName()
getDataFormatName
in interface org.apache.camel.spi.DataFormatName
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.ServiceSupport
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.support.ServiceSupport
Exception
public org.apache.camel.CamelContext getCamelContext()
getCamelContext
in interface org.apache.camel.CamelContextAware
public void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext
in interface org.apache.camel.CamelContextAware
public void marshal(org.apache.camel.Exchange exchange, Object body, OutputStream stream) throws Exception
marshal
in interface org.apache.camel.spi.DataFormat
Exception
public Object unmarshal(org.apache.camel.Exchange exchange, InputStream stream) throws Exception
unmarshal
in interface org.apache.camel.spi.DataFormat
Exception
public 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