public class FlatpackDataFormat
extends org.apache.camel.support.ServiceSupport
implements org.apache.camel.spi.DataFormat, org.apache.camel.spi.DataFormatName
DataSetList
.
Constructor and Description |
---|
FlatpackDataFormat() |
Modifier and Type | Method and Description |
---|---|
protected net.sf.flatpack.Parser |
createParser(org.apache.camel.Exchange exchange,
Reader bodyReader) |
protected void |
doStart() |
protected void |
doStop() |
String |
getDataFormatName() |
String |
getDefinition() |
char |
getDelimiter() |
net.sf.flatpack.ParserFactory |
getParserFactory() |
char |
getTextQualifier() |
boolean |
isAllowShortLines() |
boolean |
isFixed() |
boolean |
isIgnoreExtraColumns() |
boolean |
isIgnoreFirstRecord() |
void |
marshal(org.apache.camel.Exchange exchange,
Object graph,
OutputStream stream) |
void |
setAllowShortLines(boolean allowShortLines)
Allows for lines to be shorter than expected and ignores the extra characters
|
void |
setDefinition(String definition) |
void |
setDelimiter(char delimiter) |
void |
setFixed(boolean fixed) |
void |
setIgnoreExtraColumns(boolean ignoreExtraColumns)
Allows for lines to be longer than expected and ignores the extra characters
|
void |
setIgnoreFirstRecord(boolean ignoreFirstRecord) |
void |
setParserFactory(net.sf.flatpack.ParserFactory parserFactory) |
void |
setTextQualifier(char textQualifier) |
Object |
unmarshal(org.apache.camel.Exchange exchange,
InputStream stream) |
public String getDataFormatName()
getDataFormatName
in interface org.apache.camel.spi.DataFormatName
public void marshal(org.apache.camel.Exchange exchange, Object graph, 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
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 String getDefinition()
public void setDefinition(String definition)
public boolean isFixed()
public void setFixed(boolean fixed)
public char getDelimiter()
public void setDelimiter(char delimiter)
public boolean isIgnoreFirstRecord()
public void setIgnoreFirstRecord(boolean ignoreFirstRecord)
public char getTextQualifier()
public void setTextQualifier(char textQualifier)
public net.sf.flatpack.ParserFactory getParserFactory()
public void setParserFactory(net.sf.flatpack.ParserFactory parserFactory)
public boolean isAllowShortLines()
public void setAllowShortLines(boolean allowShortLines)
public void setIgnoreExtraColumns(boolean ignoreExtraColumns)
public boolean isIgnoreExtraColumns()
protected net.sf.flatpack.Parser createParser(org.apache.camel.Exchange exchange, Reader bodyReader) throws IOException
IOException
Apache Camel