public class XbaseRecordWriter extends AbstractRecordWriter
Xbase attributes suffer a number of limitations:
| Constructor and Description |
|---|
XbaseRecordWriter(RecordDefinition recordDefinition,
org.springframework.core.io.Resource resource) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
addDbaseField(String fullName,
DataType dataType,
Class<?> typeJavaClass,
int length,
int scale) |
protected XBaseFieldDefinition |
addFieldDefinition(String fullName,
char type,
int length,
int scale) |
void |
close() |
void |
flush() |
Charset |
getCharset() |
RecordDefinition |
getRecordDefinition() |
Map<String,String> |
getShortNames() |
protected boolean |
hasField(String name) |
protected void |
init() |
boolean |
isUseZeroForNull() |
protected void |
preFirstWrite(Record object) |
void |
setCharset(Charset charset) |
void |
setShortNames(Map<String,String> shortNames) |
void |
setUseZeroForNull(boolean useZeroForNull) |
String |
toString() |
void |
write(Record object) |
protected boolean |
writeField(Record object,
XBaseFieldDefinition field) |
isIndent, isWritable, isWriteNulls, setIndent, setProperty, setWriteNullsclose, close, close, openclearProperties, getProperties, getProperty, getProperty, removeProperty, setProperties, setPropertySoft, setPropertyWeakclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclearProperties, getProperties, getProperty, getProperty, removeProperty, setProperties, setPropertySoft, setPropertyWeakpublic XbaseRecordWriter(RecordDefinition recordDefinition, org.springframework.core.io.Resource resource)
protected int addDbaseField(String fullName, DataType dataType, Class<?> typeJavaClass, int length, int scale)
protected XBaseFieldDefinition addFieldDefinition(String fullName, char type, int length, int scale)
public void close()
close in interface Writer<Record>close in interface AutoCloseableclose in class AbstractWriter<Record>public void flush()
public Charset getCharset()
public RecordDefinition getRecordDefinition()
getRecordDefinition in class AbstractRecordWriterprotected boolean hasField(String name)
protected void init()
throws IOException
IOExceptionpublic boolean isUseZeroForNull()
protected void preFirstWrite(Record object) throws IOException
IOExceptionpublic void setCharset(Charset charset)
public void setUseZeroForNull(boolean useZeroForNull)
public void write(Record object)
protected boolean writeField(Record object, XBaseFieldDefinition field) throws IOException
IOExceptionCopyright © 2015 Revolution Systems Inc.. All rights reserved.