public abstract class DbfReader extends Object implements Reader
| Modifier and Type | Field and Description |
|---|---|
static int |
HEADER_END_CHAR |
| Constructor and Description |
|---|
DbfReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
absolute(int position) |
void |
close() |
String |
getEncode() |
List<Field> |
getFields() |
Header |
getHeader() |
byte |
getType() |
boolean |
hasNext() |
boolean |
isRecordRemoved() |
void |
moveBeforeFirst() |
void |
next() |
static Reader |
parse(File dbfFile) |
static Reader |
parse(File dbfFile,
String encode) |
static Reader |
parse(String dbfFile) |
static Reader |
parse(String dbfFile,
String encode) |
protected void |
readByteBuffer(ByteBuffer byteBuffer) |
protected abstract Field |
readField() |
protected abstract void |
readFields() |
protected abstract void |
readHeader() |
void |
setFields(List<Field> fields) |
void |
setFileChannel(FileChannel fileChannel) |
void |
setHeader(Header header) |
void |
setType(byte type) |
public static final int HEADER_END_CHAR
public static Reader parse(String dbfFile, String encode) throws IOException, IllegalAccessException, InstantiationException
public static Reader parse(String dbfFile) throws IOException, IllegalAccessException, InstantiationException
public static Reader parse(File dbfFile) throws IOException, IllegalAccessException, InstantiationException
public static Reader parse(File dbfFile, String encode) throws IOException, IllegalAccessException, InstantiationException
public byte getType()
public void setType(byte type)
public void setHeader(Header header)
public boolean isRecordRemoved()
isRecordRemoved in interface Readerpublic void setFileChannel(FileChannel fileChannel)
setFileChannel in interface Readerprotected abstract void readFields()
throws IOException
IOExceptionpublic void moveBeforeFirst()
throws IOException
moveBeforeFirst in interface ReaderIOExceptionpublic void absolute(int position)
throws IOException
absolute in interface Readerposition - 从1开始IOExceptionprotected abstract Field readField() throws IOException
IOExceptionprotected abstract void readHeader()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface ReaderIOExceptionpublic void next()
throws IOException
next in interface ReaderIOExceptionprotected void readByteBuffer(ByteBuffer byteBuffer) throws IOException
IOExceptionCopyright © 2006–2018 TinyGroup. All rights reserved.