Skip to content

Commit

Permalink
fix issue #9
Browse files Browse the repository at this point in the history
update jdbf version to 2.1.0 into POM file
update readme
  • Loading branch information
iryndin committed Dec 16, 2014
1 parent a61d117 commit 47b6b92
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ jdbf

Java utility to read/write DBF files

### Version 2.1.0

Fix issue [#5](https://github.com/iryndin/jdbf/issues/5) - don't load DBF and MEMO files into memory when reading it (thanks to Eugene Michuk for noticing this!)

Fix issue [#9](https://github.com/iryndin/jdbf/issues/9) - don't define some DBF file types correctly (thanks to [l1feh4ck3r](https://github.com/l1feh4ck3r)!!)

### Version 2.0.2

Fix issue [#7](https://github.com/iryndin/jdbf/issues/7) - add DbfRecord.isDeleted() method that checks if record is deleted.
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>net.iryndin</groupId>
<artifactId>jdbf</artifactId>
<version>2.0.2</version>
<version>2.1.0</version>
<packaging>jar</packaging>

<name>jdbf</name>
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/net/iryndin/jdbf/core/DbfFileTypeEnum.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ public enum DbfFileTypeEnum {
this.description = description;
}

public static DbfFileTypeEnum fromInt(int type) {
public static DbfFileTypeEnum fromInt(byte bType) {
int iType = 0xFF & bType;
for (DbfFileTypeEnum e : DbfFileTypeEnum.values()) {
if (e.type == type) {
if (e.type == iType) {
return e;
}
}
Expand Down

0 comments on commit 47b6b92

Please sign in to comment.