public class DBFField extends FormatField
FormatField.NonAvailableFormatField
Modifier and Type | Field and Description |
---|---|
static byte |
FIELD_TYPE_C |
static byte |
FIELD_TYPE_D |
static byte |
FIELD_TYPE_F |
static byte |
FIELD_TYPE_L |
static byte |
FIELD_TYPE_M |
static byte |
FIELD_TYPE_N |
NON_AVAILABLE_FIELD
Constructor and Description |
---|
DBFField() |
Modifier and Type | Method and Description |
---|---|
protected static DBFField |
createField(java.io.DataInput in)
Creates a DBFField object from the data read from the given DataInputStream.
|
byte |
getDataType()
Returns the data type of the field.
|
int |
getDecimalCount()
Returns the decimal part.
|
int |
getFieldLength()
Returns field length.
|
java.lang.String |
getName()
Returns the name of the field.
|
void |
setDataType(byte value)
Sets the data type of the field.
|
void |
setDecimalCount(int value)
Sets the decimal place size of the field.
|
void |
setFieldLength(int value)
Length of the field.
|
void |
setFieldName(java.lang.String value)
Deprecated.
This method is depricated as of version 0.3.3.1 and is replaced by
setName( String) . |
void |
setName(java.lang.String value)
This method sets the name of the field.
|
protected void |
write(java.io.DataOutput out)
Writes the content of DBFField object into the stream as per
DBF format specifications.
|
getIndex, setIndex, toString
public static final byte FIELD_TYPE_C
public static final byte FIELD_TYPE_L
public static final byte FIELD_TYPE_N
public static final byte FIELD_TYPE_F
public static final byte FIELD_TYPE_D
public static final byte FIELD_TYPE_M
protected static DBFField createField(java.io.DataInput in) throws java.io.IOException
in
- DataInputStreamjava.io.IOException
- If any stream reading problems occures.protected void write(java.io.DataOutput out) throws java.io.IOException
out
- OutputStreamjava.io.IOException
- if any stream related issues occur.public java.lang.String getName()
getName
in class FormatField
public byte getDataType()
public int getFieldLength()
public int getDecimalCount()
public void setFieldName(java.lang.String value)
setName( String)
.public void setName(java.lang.String value)
FormatField
setName
in class FormatField
value
- a Stringpublic void setDataType(byte value)
value
- type of the field. One of the following:public void setFieldLength(int value)
value
- length of the field as int.public void setDecimalCount(int value)
value
- the size of the decimal field.