T - the original serializerpublic interface SerializerAdapter<T>
| Modifier and Type | Method and Description |
|---|---|
<U> U |
deserialize(String value,
Type type)
Deprecated.
Use deserialize(String, Type, Encoding) instead.
Deserializes a JSON string into a
U object using the current T. |
<U> U |
deserialize(String value,
Type type,
SerializerEncoding encoding)
Deserializes a string into a
U object using the current T. |
String |
serialize(Object object)
Deprecated.
Use serialize(Object, Encoding) instead.
Serializes an object into a JSON string.
|
String |
serialize(Object object,
SerializerEncoding encoding)
Serializes an object into a string.
|
String |
serializeList(List<?> list,
CollectionFormat format)
Serializes a list into a string with the delimiter specified with the
Swagger collection format joining each individual serialized items in
the list.
|
T |
serializer()
Deprecated.
original serializer type should not be exposed
|
String |
serializeRaw(Object object)
Serializes an object into a raw string.
|
@Deprecated T serializer()
String serialize(Object object, SerializerEncoding encoding) throws IOException
object - the object to serialize.encoding - the encoding to use for serialization.IOException - exception from serialization.@Deprecated String serialize(Object object) throws IOException
object - the object to serialize.IOException - exception from serialization.String serializeRaw(Object object)
object - the object to serialize.String serializeList(List<?> list, CollectionFormat format)
list - the list to serialize.format - the Swagger collection format.@Deprecated <U> U deserialize(String value, Type type) throws IOException
U object using the current T.U - the type of the deserialized object.value - the string value to deserialize.type - the type to deserialize.IOException - exception in deserialization<U> U deserialize(String value, Type type, SerializerEncoding encoding) throws IOException
U object using the current T.U - the type of the deserialized object.value - the string value to deserialize.type - the type to deserialize.encoding - the encoding used in the serialized value.IOException - exception in deserialization/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/