rescrv/HyperDex — pull request #65 by neikos (2012-08-01 02:22:42+00:00)
Title: Refactored the java bindings to handle binary data.

HyperClient instances now have a default (not coming from the environment) string encoding of **UTF-8**. So if you insert string values into a string field, it will be encoded into bytes using **UTF-8**. You can change this default encoding with the instance method **setDefaultStringEncoding("your encoding")**. Or you can simply insert a **byte[]** array or an instance of the **ByteArray** class into a string field. It is up to the application to know how interpret its bytes in any given string field.

See the example **hyperclient/java/examples/HyperBinaryTest.java**. Its comments explain more.