public class BindyCsvDataFormat extends BindyAbstractDataFormat
DataFormat
) using Bindy to marshal to and from CSV filesshutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
BindyCsvDataFormat() |
BindyCsvDataFormat(Class<?> type) |
Modifier and Type | Method and Description |
---|---|
protected BindyAbstractFactory |
createModelFactory() |
String |
getDataFormatName()
The name of the data format
|
void |
marshal(Exchange exchange,
Object body,
OutputStream outputStream)
Marshals the object to the given Stream.
|
Object |
unmarshal(Exchange exchange,
InputStream inputStream)
Unmarshals the given stream into an object.
|
doStart, doStop, extractUnmarshalResult, getClassType, getFactory, getLocale, setClassType, setLocale, setModelFactory
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public BindyCsvDataFormat()
public BindyCsvDataFormat(Class<?> type)
public String getDataFormatName()
DataFormatName
public void marshal(Exchange exchange, Object body, OutputStream outputStream) throws Exception
DataFormat
exchange
- the current exchangebody
- the object to be marshalledoutputStream
- the output stream to write the marshalled result toException
- can be thrownpublic Object unmarshal(Exchange exchange, InputStream inputStream) throws Exception
DataFormat
Message
object as well which will be used as the OUT message of exchange.exchange
- the current exchangeinputStream
- the input stream with the object to be unmarshalledException
- can be thrownprotected BindyAbstractFactory createModelFactory() throws Exception
createModelFactory
in class BindyAbstractDataFormat
Exception
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.