Java bindings for serializer