public class DbfRow
extends java.lang.Object
| Constructor and Description |
|---|
DbfRow(DbfHeader header,
java.nio.charset.Charset defaultCharset,
java.lang.Object[] row) |
| Modifier and Type | Method and Description |
|---|---|
java.math.BigDecimal |
getBigDecimal(java.lang.String fieldName)
Retrieves the value of the designated field as java.math.BigDecimal.
|
boolean |
getBoolean(java.lang.String fieldName)
Retrieves the value of the designated field as boolean.
|
byte |
getByte(java.lang.String fieldName)
Retrieves the value of the designated field as byte.
|
java.util.Date |
getDate(java.lang.String fieldName)
Retrieves the value of the designated field as java.util.Date.
|
double |
getDouble(java.lang.String fieldName)
Retrieves the value of the designated field as double.
|
float |
getFloat(java.lang.String fieldName)
Retrieves the value of the designated field as float.
|
int |
getInt(java.lang.String fieldName)
Retrieves the value of the designated field as int.
|
long |
getLong(java.lang.String fieldName)
Retrieves the value of the designated field as long.
|
java.lang.Object |
getObject(java.lang.String fieldName)
Retrieves the value of the designated field as Object.
|
short |
getShort(java.lang.String fieldName)
Retrieves the value of the designated field as short.
|
java.lang.String |
getString(java.lang.String fieldName)
Retrieves the value of the designated field as String.
|
java.lang.String |
getString(java.lang.String fieldName,
java.nio.charset.Charset charset)
Retrieves the value of the designated field as String
using given charset.
|
public DbfRow(DbfHeader header, java.nio.charset.Charset defaultCharset, java.lang.Object[] row)
public java.math.BigDecimal getBigDecimal(java.lang.String fieldName)
throws DbfException
fieldName - the name of the fieldDbfException - if there's no field with name fieldNamepublic java.util.Date getDate(java.lang.String fieldName)
throws DbfException
fieldName - the name of the fieldDbfException - if there's no field with name fieldNamepublic java.lang.String getString(java.lang.String fieldName)
throws DbfException
fieldName - the name of the fieldDbfException - if there's no field with name fieldNamepublic java.lang.String getString(java.lang.String fieldName,
java.nio.charset.Charset charset)
throws DbfException
fieldName - the name of the fieldcharset - the charset to be used to decode field valueDbfException - if there's no field with name fieldNamepublic boolean getBoolean(java.lang.String fieldName)
throws DbfException
fieldName - the name of the fieldDbfException - if there's no field with name fieldNamepublic int getInt(java.lang.String fieldName)
throws DbfException
fieldName - the name of the fieldDbfException - if there's no field with name fieldNamepublic short getShort(java.lang.String fieldName)
throws DbfException
fieldName - the name of the fieldDbfException - if there's no field with name fieldNamepublic byte getByte(java.lang.String fieldName)
throws DbfException
fieldName - the name of the fieldDbfException - if there's no field with name fieldNamepublic long getLong(java.lang.String fieldName)
throws DbfException
fieldName - the name of the fieldDbfException - if there's no field with name fieldNamepublic float getFloat(java.lang.String fieldName)
throws DbfException
fieldName - the name of the fieldDbfException - if there's no field with name fieldNamepublic double getDouble(java.lang.String fieldName)
throws DbfException
fieldName - the name of the fieldDbfException - if there's no field with name fieldNamepublic java.lang.Object getObject(java.lang.String fieldName)
throws DbfException
fieldName - the name of the fieldDbfException - if there's no field with name fieldName