org.apache.activemq.apollo.dto
Class JsonCodec

java.lang.Object
  extended by org.apache.activemq.apollo.dto.JsonCodec

public class JsonCodec
extends java.lang.Object

Author:
Hiram Chirino

Field Summary
static org.codehaus.jackson.map.ObjectMapper mapper
           
 
Constructor Summary
JsonCodec()
           
 
Method Summary
static
<T> T
decode(org.fusesource.hawtbuf.Buffer buffer, java.lang.Class<T> type)
           
static org.fusesource.hawtbuf.Buffer encode(java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mapper

public static final org.codehaus.jackson.map.ObjectMapper mapper
Constructor Detail

JsonCodec

public JsonCodec()
Method Detail

decode

public static <T> T decode(org.fusesource.hawtbuf.Buffer buffer,
                           java.lang.Class<T> type)
                throws java.io.IOException
Throws:
java.io.IOException

encode

public static org.fusesource.hawtbuf.Buffer encode(java.lang.Object value)
                                            throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.