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 Reader
public void setFileChannel(FileChannel fileChannel)
setFileChannel
in interface Reader
protected abstract void readFields() throws IOException
IOException
public void moveBeforeFirst() throws IOException
moveBeforeFirst
in interface Reader
IOException
public void absolute(int position) throws IOException
absolute
in interface Reader
position
- 从1开始IOException
protected abstract Field readField() throws IOException
IOException
protected abstract void readHeader() throws IOException
IOException
public void close() throws IOException
close
in interface Reader
IOException
public void next() throws IOException
next
in interface Reader
IOException
protected void readByteBuffer(ByteBuffer byteBuffer) throws IOException
IOException
Copyright © 2006–2018 TinyGroup. All rights reserved.