public class FlatpackDataFormat extends Object implements org.apache.camel.spi.DataFormat
DataSetList.
| Constructor and Description |
|---|
FlatpackDataFormat() |
| Modifier and Type | Method and Description |
|---|---|
protected net.sf.flatpack.Parser |
createParser(org.apache.camel.Exchange exchange,
Reader bodyReader) |
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 void marshal(org.apache.camel.Exchange exchange,
Object graph,
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 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
IOExceptionApache Camel