public interface JsonrpcMessageService<T extends JsonrpcMessage>
| Modifier and Type | Method and Description |
|---|---|
T |
fromJson(Object source)
Reads an instance from specified source.
|
default T |
fromJsonString(String string)
Parse an instance from specified JSON string.
|
void |
toJson(T message,
Object target)
Writes specified message to specified target.
|
default String |
toJsonString(T message)
Prints given message to a JSON string.
|
T fromJson(Object source)
source - the source from which the instance is read.default T fromJsonString(String string)
string - the JSON string.fromJson(Object) method with an instance of StringReader created with string.void toJson(T message, Object target)
message - the message to write.target - the target which the message is written.default String toJsonString(T message)
message - the message to print.toJson(JsonrpcMessage, Object) method with given message and an instance of StringWriter and returns the value written to the writer.Copyright © 2019–2020 Jinahya, Inc.. All rights reserved.