public interface ObjectSerializer
| Modifier and Type | Method and Description |
|---|---|
<T> T |
deserialize(InputStream stream,
TypeReference<T> typeReference)
Reads a stream into its object representation.
|
<T> Mono<T> |
deserializeAsync(InputStream stream,
TypeReference<T> typeReference)
Reads a stream into its object representation.
|
void |
serialize(OutputStream stream,
Object value)
Writes the object into a stream.
|
Mono<Void> |
serializeAsync(OutputStream stream,
Object value)
Writes the object into a stream.
|
<T> T deserialize(InputStream stream, TypeReference<T> typeReference)
T - Type of the object.stream - InputStream of data.typeReference - TypeReference representing the object.<T> Mono<T> deserializeAsync(InputStream stream, TypeReference<T> typeReference)
T - Type of the object.stream - InputStream of data.typeReference - TypeReference representing the object.void serialize(OutputStream stream, Object value)
stream - OutputStream where the object will be written.value - The object.Mono<Void> serializeAsync(OutputStream stream, Object value)
stream - OutputStream where the object will be written.value - The object.Copyright © 2020 Microsoft Corporation. All rights reserved.