public class DbfFileWriter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DBF_ALL_DELETED |
static int |
DBF_BAD_DBFID |
static int |
DBF_BAD_EODEFS |
static int |
DBF_BAD_INT_WIDTH |
static int |
DBF_BAD_ITYPE |
static int |
DBF_BAD_OFFSET |
static int |
DBF_BAD_SIZEOF |
static int |
DBF_BUFFSIZE |
static int |
DBF_CANNOT_DO_MEMO |
static int |
DBF_CENTURY |
static int |
DBF_END_OF_DEFS |
static int |
DBF_FLOATING_N |
static int |
DBF_GET_DATE |
static int |
DBF_INT_EXP |
static int |
DBF_INT_JUNK |
static int |
DBF_INT_REAL |
static int |
DBF_MALLOC |
static int |
DBF_MALLOC_FIELD |
static int |
DBF_MAXFIELDS |
static int |
DBF_MAXLEN |
static int |
DBF_NAMELEN |
static int |
DBF_NO_FIELDS |
static int |
DBF_OK |
static int |
DBF_READ_DATA |
static int |
DBF_READ_DEFS |
static int |
DBF_READ_HEAD |
static int |
DBF_REC_DELETED |
static int |
DBF_REC_TOO_LONG |
static int |
DBF_TOO_MANY_FIELDS |
static int |
DBF_TOO_WIDE_FOR_INF |
static int |
DBF_UNPRINT_DATA |
static int |
DBF_WRITE_DATA |
static int |
DBF_WRITE_DEFS |
static int |
DBF_WRITE_HEAD |
static int |
DBF3_MAXFIELDS |
static int |
DBF4_MAXFIELDS |
Constructor and Description |
---|
DbfFileWriter(java.lang.String file) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.nio.charset.Charset |
getCharset() |
void |
setCharset(java.nio.charset.Charset charset) |
void |
writeHeader(DbfFieldDef[] f,
int nrecs) |
void |
writeRecord(java.util.Vector rec) |
void |
writeRecords(java.util.Vector[] recs) |
public static final int DBF_CENTURY
public static final int DBF_MAXLEN
public static final int DBF_NAMELEN
public static final int DBF3_MAXFIELDS
public static final int DBF4_MAXFIELDS
public static final int DBF_MAXFIELDS
public static final int DBF_BUFFSIZE
public static final int DBF_END_OF_DEFS
public static final int DBF_OK
public static final int DBF_READ_HEAD
public static final int DBF_BAD_DBFID
public static final int DBF_WRITE_HEAD
public static final int DBF_READ_DEFS
public static final int DBF_TOO_MANY_FIELDS
public static final int DBF_NO_FIELDS
public static final int DBF_BAD_EODEFS
public static final int DBF_WRITE_DEFS
public static final int DBF_BAD_ITYPE
public static final int DBF_CANNOT_DO_MEMO
public static final int DBF_BAD_INT_WIDTH
public static final int DBF_BAD_OFFSET
public static final int DBF_FLOATING_N
public static final int DBF_READ_DATA
public static final int DBF_UNPRINT_DATA
public static final int DBF_WRITE_DATA
public static final int DBF_INT_EXP
public static final int DBF_INT_REAL
public static final int DBF_INT_JUNK
public static final int DBF_REC_DELETED
public static final int DBF_ALL_DELETED
public static final int DBF_BAD_SIZEOF
public static final int DBF_REC_TOO_LONG
public static final int DBF_TOO_WIDE_FOR_INF
public static final int DBF_MALLOC_FIELD
public static final int DBF_MALLOC
public static final int DBF_GET_DATE
public DbfFileWriter(java.lang.String file) throws java.io.IOException
java.io.IOException
public void writeHeader(DbfFieldDef[] f, int nrecs) throws java.io.IOException
java.io.IOException
public void writeRecords(java.util.Vector[] recs) throws DbfFileException, java.io.IOException
DbfFileException
java.io.IOException
public void writeRecord(java.util.Vector rec) throws DbfFileException, java.io.IOException
DbfFileException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public java.nio.charset.Charset getCharset()
public void setCharset(java.nio.charset.Charset charset)
charset
- the charset to set