public class JacksonSerializer extends Object implements Serializer
| Constructor and Description |
|---|
JacksonSerializer() |
JacksonSerializer(com.fasterxml.jackson.databind.AnnotationIntrospector introspector) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
deserializeBytes(byte[] json,
Class<T> type)
Deserializes an object from Json.
|
<T> T |
deserializeBytes(byte[] json,
com.fasterxml.jackson.core.type.TypeReference<T> type)
Deserializes an object from Json.
|
<T> T |
deserializeObject(org.vertx.java.core.json.JsonArray json,
Class<T> type)
Deserializes an object from Json.
|
<T> T |
deserializeObject(org.vertx.java.core.json.JsonArray json,
com.fasterxml.jackson.core.type.TypeReference<T> type)
Deserializes an object from Json.
|
<T> T |
deserializeObject(org.vertx.java.core.json.JsonObject json,
Class<T> type)
Deserializes an object from Json.
|
<T> T |
deserializeObject(org.vertx.java.core.json.JsonObject json,
com.fasterxml.jackson.core.type.TypeReference<T> type)
Deserializes an object from Json.
|
<T> T |
deserializeString(String json,
Class<T> type)
Deserializes an object from Json.
|
<T> T |
deserializeString(String json,
com.fasterxml.jackson.core.type.TypeReference<T> type)
Deserializes an object from Json.
|
<T> byte[] |
serializeToBytes(T object)
Serializes an object to Json.
|
<T> org.vertx.java.core.json.JsonObject |
serializeToObject(T object)
Serializes an object to Json.
|
<T> String |
serializeToString(T object)
Serializes an object to Json.
|
public JacksonSerializer()
public JacksonSerializer(com.fasterxml.jackson.databind.AnnotationIntrospector introspector)
public <T> byte[] serializeToBytes(T object)
SerializerSerializationException will be thrown.serializeToBytes in interface Serializerobject - The object to serialize.public <T> T deserializeBytes(byte[] json,
Class<T> type)
SerializerDeserializationException will be thrown.deserializeBytes in interface Serializerjson - A Json representation of the serializable object.type - The type to which to deserialize the object.public <T> T deserializeBytes(byte[] json,
com.fasterxml.jackson.core.type.TypeReference<T> type)
SerializerDeserializationException will be thrown.deserializeBytes in interface Serializerjson - A Json representation of the serializable object.type - The type to which to deserialize the object.public <T> String serializeToString(T object)
SerializerSerializationException will be thrown.serializeToString in interface Serializerobject - The object to serialize.public <T> T deserializeString(String json, Class<T> type)
SerializerDeserializationException will be thrown.deserializeString in interface Serializerjson - A Json representation of the serializable object.type - The type to which to deserialize the object.public <T> T deserializeString(String json, com.fasterxml.jackson.core.type.TypeReference<T> type)
SerializerDeserializationException will be thrown.deserializeString in interface Serializerjson - A Json representation of the serializable object.type - The type to which to deserialize the object.public <T> org.vertx.java.core.json.JsonObject serializeToObject(T object)
SerializerSerializationException will be thrown.serializeToObject in interface Serializerobject - The object to serialize.public <T> T deserializeObject(org.vertx.java.core.json.JsonObject json,
Class<T> type)
SerializerDeserializationException will be thrown.deserializeObject in interface Serializerjson - A Json representation of the serializable object.type - The type to which to deserialize the object.public <T> T deserializeObject(org.vertx.java.core.json.JsonObject json,
com.fasterxml.jackson.core.type.TypeReference<T> type)
SerializerDeserializationException will be thrown.deserializeObject in interface Serializerjson - A Json representation of the serializable object.type - The type to which to deserialize the object.public <T> T deserializeObject(org.vertx.java.core.json.JsonArray json,
Class<T> type)
SerializerDeserializationException will be thrown.deserializeObject in interface Serializerjson - A Json representation of the serializable object.type - The type to which to deserialize the object.public <T> T deserializeObject(org.vertx.java.core.json.JsonArray json,
com.fasterxml.jackson.core.type.TypeReference<T> type)
SerializerDeserializationException will be thrown.deserializeObject in interface Serializerjson - A Json representation of the serializable object.type - The type to which to deserialize the object.Copyright © 2013-2014. All Rights Reserved.