|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.linuxense.javadbf.DBFField
DBFField represents a field specification in an dbf file. DBFField objects are either created and added to a DBFWriter object or obtained from DBFReader object through getField( int) query.
Field Summary | |
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
|
Constructor Summary | |
DBFField()
|
Method Summary | |
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)
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
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
Constructor Detail |
public DBFField()
Method Detail |
protected static DBFField createField(java.io.DataInput in) throws java.io.IOException
in
- DataInputStream
java.io.IOException
- If any stream reading problems occures.protected void write(java.io.DataOutput out) throws java.io.IOException
java.io.IOException
- if any stream related issues occur.public java.lang.String getName()
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)
public void setDataType(byte value)
public void setFieldLength(int value)
public void setDecimalCount(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |