public abstract class DbfWriter extends Object implements Writer
| Modifier and Type | Field and Description |
|---|---|
protected ByteArrayOutputStream |
bodybuffer |
protected List<Field> |
fields |
protected ByteArrayOutputStream |
headbuffer |
static int |
HEADER_END_CHAR |
| Constructor and Description |
|---|
DbfWriter() |
| Modifier and Type | Method and Description |
|---|---|
static Writer |
generate(String filename,
String encode) |
String |
getEncode() |
protected int |
getPostion() |
protected void |
next() |
void |
save() |
void |
setEncode(String encode) |
void |
setFields(List<Field> fields) |
void |
setFilename(String filename) |
abstract void |
writeFields(List<Field> f) |
protected abstract void |
writeHeaders() |
abstract void |
writeRecord(String... args) |
public static final int HEADER_END_CHAR
protected ByteArrayOutputStream bodybuffer
protected ByteArrayOutputStream headbuffer
public void setFilename(String filename)
public String getEncode()
public void setEncode(String encode)
public void save()
throws IOException
save in interface WriterIOExceptionpublic abstract void writeFields(List<Field> f) throws IOException
writeFields in interface WriterIOExceptionpublic abstract void writeRecord(String... args) throws IOException, NullPointerException
writeRecord in interface WriterIOExceptionNullPointerExceptionprotected abstract void writeHeaders()
throws IOException
IOExceptionprotected void next()
protected int getPostion()
Copyright © 2006–2018 TinyGroup. All rights reserved.