Skip to content

Commit

Permalink
read memo field as String for pentaho
Browse files Browse the repository at this point in the history
  • Loading branch information
albfernandez committed Apr 26, 2018
1 parent 83ce091 commit 6498c1e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/com/linuxense/javadbf/DBFReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,11 @@ public Object[] nextRecord() throws DBFException {
else
recordObjects[i] = calendar.getTime();
break;
case MEMO:
byte[] x_array = new byte[this.header.fieldArray[i].getFieldLength()];
this.dataInputStream.read(x_array);
recordObjects[i] = new String(x_array, this.getCharset());
break;
default:
skip(this.header.fieldArray[i].getFieldLength());
recordObjects[i] = null;
Expand Down

0 comments on commit 6498c1e

Please sign in to comment.