io.keen.client.java
Class JacksonJsonHandler

java.lang.Object
  extended by io.keen.client.java.JacksonJsonHandler
All Implemented Interfaces:
io.keen.client.java.KeenJsonHandler

public class JacksonJsonHandler
extends java.lang.Object
implements io.keen.client.java.KeenJsonHandler

Implementation of the Keen JSON handler interface using the Jackson JSON library.

Since:
2.0.0

Constructor Summary
JacksonJsonHandler()
          Constructs a new Jackson JSON handler.
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> readJson(java.io.Reader reader)
          
 void writeJson(java.io.Writer writer, java.util.Map<java.lang.String,?> value)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JacksonJsonHandler

public JacksonJsonHandler()
Constructs a new Jackson JSON handler.

Method Detail

readJson

public java.util.Map<java.lang.String,java.lang.Object> readJson(java.io.Reader reader)
                                                          throws java.io.IOException

Specified by:
readJson in interface io.keen.client.java.KeenJsonHandler
Throws:
java.io.IOException

writeJson

public void writeJson(java.io.Writer writer,
                      java.util.Map<java.lang.String,?> value)
               throws java.io.IOException

Specified by:
writeJson in interface io.keen.client.java.KeenJsonHandler
Throws:
java.io.IOException