public enum DBFDataType extends Enum<DBFDataType>
Enum Constant and Description |
---|
CHARACTER
Character data, padded with whitespaces.
|
CURRENCY
Currency type (FoxPro)
|
DATE
Date
|
FLOATING_POINT
Numeric data
|
LOGICAL
To store boolean values.
|
LONG
Numeric long (FoxPro)
|
MEMO
Memo
|
NUMERIC
Numeric data
|
TIMESTAMP
Timestamp type (FoxPro)
|
UNKNOWN
Default unknown type
|
Modifier and Type | Method and Description |
---|---|
static DBFDataType |
fromCode(byte cod)
Gets the DBFDataType from the code used in the file
|
byte |
getCode()
Gets the code as stored in the dbf file.
|
int |
getDefaultSize()
Gets the default size for this type
|
int |
getMaxSize()
Gets the maximum size for this type
|
int |
getMinSize()
Gets the minimum size for this type
|
boolean |
isWriteSupported()
Gets if JavaDBF can write this type
|
static DBFDataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DBFDataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DBFDataType UNKNOWN
public static final DBFDataType CHARACTER
public static final DBFDataType DATE
public static final DBFDataType FLOATING_POINT
public static final DBFDataType LOGICAL
public static final DBFDataType MEMO
public static final DBFDataType NUMERIC
public static final DBFDataType LONG
public static final DBFDataType CURRENCY
public static final DBFDataType TIMESTAMP
public static DBFDataType[] values()
for (DBFDataType c : DBFDataType.values()) System.out.println(c);
public static DBFDataType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic byte getCode()
public int getMinSize()
public int getMaxSize()
public int getDefaultSize()
public boolean isWriteSupported()
public static DBFDataType fromCode(byte cod)
cod
- the code used by dbaseCopyright © 2016. All rights reserved.