Package io.moderne.jsonrpc.formatter
Interface MessageFormatter
- All Known Implementing Classes:
JsonMessageFormatter
public interface MessageFormatter
-
Method Summary
Modifier and TypeMethodDescription<T> @Nullable TconvertValue(RawJson value, Type type) default Charsetvoidserialize(JsonRpcMessage message, OutputStream out)
-
Method Details
-
deserialize
- Throws:
IOException
-
serialize
- Throws:
IOException
-
convertValue
Convert aRawJsonvalue (typically from JSON-RPCparamsorresult) to a typed POJO. Implementations decide how to handle each possible wrapped representation: a POJO awaiting serialization, a parser-format-specific buffer captured duringdeserialize, ornull. -
getEncoding
-