org.apache.camel.dataformat.beanio
Class BeanIODataFormat
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.dataformat.beanio.BeanIODataFormat
- All Implemented Interfaces:
- org.apache.camel.CamelContextAware, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.DataFormat, org.apache.camel.StatefulService, org.apache.camel.SuspendableService
public class BeanIODataFormat
- extends org.apache.camel.support.ServiceSupport
- implements org.apache.camel.spi.DataFormat, org.apache.camel.CamelContextAware
A data format (
DataFormat
) for beanio data.
Fields inherited from class org.apache.camel.support.ServiceSupport |
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
Methods inherited from class org.apache.camel.support.ServiceSupport |
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanIODataFormat
public BeanIODataFormat()
BeanIODataFormat
public BeanIODataFormat(String mapping,
String streamName)
doStart
protected void doStart()
throws Exception
- Specified by:
doStart
in class org.apache.camel.support.ServiceSupport
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Specified by:
doStop
in class org.apache.camel.support.ServiceSupport
- Throws:
Exception
getCamelContext
public org.apache.camel.CamelContext getCamelContext()
- Specified by:
getCamelContext
in interface org.apache.camel.CamelContextAware
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext)
- Specified by:
setCamelContext
in interface org.apache.camel.CamelContextAware
marshal
public void marshal(org.apache.camel.Exchange exchange,
Object body,
OutputStream stream)
throws Exception
- Specified by:
marshal
in interface org.apache.camel.spi.DataFormat
- Throws:
Exception
unmarshal
public Object unmarshal(org.apache.camel.Exchange exchange,
InputStream stream)
throws Exception
- Specified by:
unmarshal
in interface org.apache.camel.spi.DataFormat
- Throws:
Exception
getEncoding
public Charset getEncoding()
setEncoding
public void setEncoding(Charset encoding)
setEncoding
public void setEncoding(String encoding)
isIgnoreInvalidRecords
public boolean isIgnoreInvalidRecords()
setIgnoreInvalidRecords
public void setIgnoreInvalidRecords(boolean ignoreInvalidRecords)
isIgnoreUnexpectedRecords
public boolean isIgnoreUnexpectedRecords()
setIgnoreUnexpectedRecords
public void setIgnoreUnexpectedRecords(boolean ignoreUnexpectedRecords)
isIgnoreUnidentifiedRecords
public boolean isIgnoreUnidentifiedRecords()
setIgnoreUnidentifiedRecords
public void setIgnoreUnidentifiedRecords(boolean ignoreUnidentifiedRecords)
getMapping
public String getMapping()
setMapping
public void setMapping(String mapping)
getStreamName
public String getStreamName()
setStreamName
public void setStreamName(String streamName)
Apache Camel