public interface Serializer
Vertigo serializers serialize objects to Vert.x JsonObject instances for easy
passage over the Vert.x event bus.
| 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.
|
<T> byte[] serializeToBytes(T object)
SerializationException will be thrown.object - The object to serialize.SerializationException - If an error occurs during serialization.<T> T deserializeBytes(byte[] json,
Class<T> type)
DeserializationException will be thrown.json - A Json representation of the serializable object.type - The type to which to deserialize the object.DeserializationException - If an error occurs during deserialization.<T> T deserializeBytes(byte[] json,
com.fasterxml.jackson.core.type.TypeReference<T> type)
DeserializationException will be thrown.json - A Json representation of the serializable object.type - The type to which to deserialize the object.DeserializationException - If an error occurs during deserialization.<T> String serializeToString(T object)
SerializationException will be thrown.object - The object to serialize.SerializationException - If an error occurs during serialization.<T> T deserializeString(String json, Class<T> type)
DeserializationException will be thrown.json - A Json representation of the serializable object.type - The type to which to deserialize the object.DeserializationException - If an error occurs during deserialization.<T> T deserializeString(String json, com.fasterxml.jackson.core.type.TypeReference<T> type)
DeserializationException will be thrown.json - A Json representation of the serializable object.type - The type to which to deserialize the object.DeserializationException - If an error occurs during deserialization.<T> org.vertx.java.core.json.JsonObject serializeToObject(T object)
SerializationException will be thrown.object - The object to serialize.SerializationException - If an error occurs during serialization.<T> T deserializeObject(org.vertx.java.core.json.JsonObject json,
Class<T> type)
DeserializationException will be thrown.json - A Json representation of the serializable object.type - The type to which to deserialize the object.DeserializationException - If an error occurs during deserialization.<T> T deserializeObject(org.vertx.java.core.json.JsonObject json,
com.fasterxml.jackson.core.type.TypeReference<T> type)
DeserializationException will be thrown.json - A Json representation of the serializable object.type - The type to which to deserialize the object.DeserializationException - If an error occurs during deserialization.<T> T deserializeObject(org.vertx.java.core.json.JsonArray json,
Class<T> type)
DeserializationException will be thrown.json - A Json representation of the serializable object.type - The type to which to deserialize the object.DeserializationException - If an error occurs during deserialization.<T> T deserializeObject(org.vertx.java.core.json.JsonArray json,
com.fasterxml.jackson.core.type.TypeReference<T> type)
DeserializationException will be thrown.json - A Json representation of the serializable object.type - The type to which to deserialize the object.DeserializationException - If an error occurs during deserialization.Copyright © 2013-2014. All Rights Reserved.