Package org.geotools.dbffile
Class DbfFieldDef
- java.lang.Object
-
- org.geotools.dbffile.DbfFieldDef
-
public class DbfFieldDef extends Object
class to hold infomation about the fields in the file
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DbfFieldDef()
DbfFieldDef(String fieldname, char fieldtype, int fieldlen, int fieldnumdec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setup(int pos, EndianDataInputStream dFile)
Sets up the Dbf field definition.void
setup(int pos, EndianDataInputStream dFile, Charset charset)
Sets up the Dbf field definition with a specified Charset for the fieldnames.String
toString()
-
-
-
Field Detail
-
fieldname
public StringBuffer fieldname
-
fieldtype
public char fieldtype
-
fieldstart
public int fieldstart
-
fieldlen
public int fieldlen
-
fieldnumdec
public int fieldnumdec
-
DBF_CENTURY
public static final int DBF_CENTURY
- See Also:
- Constant Field Values
-
DBF_MAXLEN
public static final int DBF_MAXLEN
- See Also:
- Constant Field Values
-
DBF_NAMELEN
public static final int DBF_NAMELEN
- See Also:
- Constant Field Values
-
DBF3_MAXFIELDS
public static final int DBF3_MAXFIELDS
- See Also:
- Constant Field Values
-
DBF4_MAXFIELDS
public static final int DBF4_MAXFIELDS
- See Also:
- Constant Field Values
-
DBF_MAXFIELDS
public static final int DBF_MAXFIELDS
- See Also:
- Constant Field Values
-
DBF_BUFFSIZE
public static final int DBF_BUFFSIZE
- See Also:
- Constant Field Values
-
DBF_END_OF_DEFS
public static final int DBF_END_OF_DEFS
- See Also:
- Constant Field Values
-
DBF_OK
public static final int DBF_OK
- See Also:
- Constant Field Values
-
DBF_READ_HEAD
public static final int DBF_READ_HEAD
- See Also:
- Constant Field Values
-
DBF_BAD_DBFID
public static final int DBF_BAD_DBFID
- See Also:
- Constant Field Values
-
DBF_WRITE_HEAD
public static final int DBF_WRITE_HEAD
- See Also:
- Constant Field Values
-
DBF_READ_DEFS
public static final int DBF_READ_DEFS
- See Also:
- Constant Field Values
-
DBF_TOO_MANY_FIELDS
public static final int DBF_TOO_MANY_FIELDS
- See Also:
- Constant Field Values
-
DBF_NO_FIELDS
public static final int DBF_NO_FIELDS
- See Also:
- Constant Field Values
-
DBF_BAD_EODEFS
public static final int DBF_BAD_EODEFS
- See Also:
- Constant Field Values
-
DBF_WRITE_DEFS
public static final int DBF_WRITE_DEFS
- See Also:
- Constant Field Values
-
DBF_BAD_ITYPE
public static final int DBF_BAD_ITYPE
- See Also:
- Constant Field Values
-
DBF_CANNOT_DO_MEMO
public static final int DBF_CANNOT_DO_MEMO
- See Also:
- Constant Field Values
-
DBF_BAD_INT_WIDTH
public static final int DBF_BAD_INT_WIDTH
- See Also:
- Constant Field Values
-
DBF_BAD_OFFSET
public static final int DBF_BAD_OFFSET
- See Also:
- Constant Field Values
-
DBF_FLOATING_N
public static final int DBF_FLOATING_N
- See Also:
- Constant Field Values
-
DBF_READ_DATA
public static final int DBF_READ_DATA
- See Also:
- Constant Field Values
-
DBF_UNPRINT_DATA
public static final int DBF_UNPRINT_DATA
- See Also:
- Constant Field Values
-
DBF_WRITE_DATA
public static final int DBF_WRITE_DATA
- See Also:
- Constant Field Values
-
DBF_INT_EXP
public static final int DBF_INT_EXP
- See Also:
- Constant Field Values
-
DBF_INT_REAL
public static final int DBF_INT_REAL
- See Also:
- Constant Field Values
-
DBF_INT_JUNK
public static final int DBF_INT_JUNK
- See Also:
- Constant Field Values
-
DBF_REC_DELETED
public static final int DBF_REC_DELETED
- See Also:
- Constant Field Values
-
DBF_ALL_DELETED
public static final int DBF_ALL_DELETED
- See Also:
- Constant Field Values
-
DBF_BAD_SIZEOF
public static final int DBF_BAD_SIZEOF
- See Also:
- Constant Field Values
-
DBF_REC_TOO_LONG
public static final int DBF_REC_TOO_LONG
- See Also:
- Constant Field Values
-
DBF_TOO_WIDE_FOR_INF
public static final int DBF_TOO_WIDE_FOR_INF
- See Also:
- Constant Field Values
-
DBF_MALLOC_FIELD
public static final int DBF_MALLOC_FIELD
- See Also:
- Constant Field Values
-
DBF_MALLOC
public static final int DBF_MALLOC
- See Also:
- Constant Field Values
-
DBF_GET_DATE
public static final int DBF_GET_DATE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DbfFieldDef
public DbfFieldDef()
-
DbfFieldDef
public DbfFieldDef(String fieldname, char fieldtype, int fieldlen, int fieldnumdec)
-
-
Method Detail
-
setup
public void setup(int pos, EndianDataInputStream dFile) throws IOException
Sets up the Dbf field definition. For compatibilty reasons, this method is is now a wrapper for the changed/new one with Charset functions.- Parameters:
pos
- position of the field in the rowdFile
- the Dbf File as an EndianDataInputStream- Throws:
IOException
- if an IOException occurred- See Also:
setup(int pos, EndianDataInputStream dFile, Charset charset)
-
setup
public void setup(int pos, EndianDataInputStream dFile, Charset charset) throws IOException
Sets up the Dbf field definition with a specified Charset for the fieldnames.- Parameters:
pos
- position of the field in the rowdFile
- the Dbf File as an EndianDataInputStreamcharset
- the Charset to use to read the DbfFile- Throws:
IOException
- if an IOException occurred
-
-