diff --git a/src/main/java/com/linuxense/javadbf/DBFReader.java b/src/main/java/com/linuxense/javadbf/DBFReader.java index 76cb91e..7e1d428 100644 --- a/src/main/java/com/linuxense/javadbf/DBFReader.java +++ b/src/main/java/com/linuxense/javadbf/DBFReader.java @@ -486,13 +486,13 @@ protected Object getFieldValue(DBFField field) throws IOException { return readMemoField(field); case BINARY: if (field.getLength() == 8) { - return readDoubleField_B(field); + return readDoubleFieldLittleEndian(field); } else { return readMemoField(field); } case DOUBLE: - return readDoubleField_O(field); + return readDoubleFieldBigEndian(field); case NULL_FLAGS: byte [] data1 = new byte[field.getLength()]; this.dataInputStream.readFully(data1); @@ -503,16 +503,14 @@ protected Object getFieldValue(DBFField field) throws IOException { } } - private Object readDoubleField_B(DBFField field) throws IOException { + private Object readDoubleFieldLittleEndian(DBFField field) throws IOException { byte[] data = new byte[field.getLength()]; -// return this.dataInputStream.readDouble(); this.dataInputStream.readFully(data); return DBFUtils.toDoubleLittleEndian(data); } - private Object readDoubleField_O(DBFField field) throws IOException { + private Object readDoubleFieldBigEndian(DBFField field) throws IOException { byte[] data = new byte[field.getLength()]; -// return this.dataInputStream.readDouble(); this.dataInputStream.readFully(data); return DBFUtils.toDoubleBigEndian(data); }