Fix issue #2 from nyholku/purejavahidapi
Merge pull request #4 from luciano-schirmer/master

Fix issue #3 from nyholku/purejavahidapi
Looks good to me, I need to make sure that the returned length is consistent with the other backends/platforms but that is a separate issue.