Revision 28367 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/dbf/DbaseFile.java
DbaseFile.java | ||
---|---|---|
220 | 220 |
*/ |
221 | 221 |
public String getStringFieldValue(int rowIndex, int fieldId) |
222 | 222 |
throws UnsupportedEncodingException { |
223 |
try{ |
|
223 | 224 |
int fieldOffset = myHeader.getFieldDescription(fieldId).myFieldDataAddress; |
224 | 225 |
byte[] data = new byte[myHeader.getFieldLength(fieldId)]; |
225 | 226 |
if (rowIndex != posActual) { |
... | ... | |
241 | 242 |
cachedRecord.get(data); |
242 | 243 |
|
243 | 244 |
return new String(data, chars.name()); |
245 |
}catch (Exception e) { |
|
246 |
return ""; |
|
247 |
} |
|
244 | 248 |
|
245 | 249 |
} |
246 | 250 |
|
Also available in: Unified diff