Expose the library methods in Java projects

Hi there,

I added small patch which gives Java users to use the library. I need to use Java because my current project requires it and unfortunately I wasn't able to find light library as this one in the Java world.

I thought that it might help somebody else also :)