CommonApi

trait CommonApi[Config]
class Object
trait Matchable
class Any
trait Api[Config]
trait Api[Config]
trait JsonApi[T, Config]
trait DecodingApi[Config]
trait EncodingApi[EncodingConfig, DecodingConfig]

Value members

Abstract methods

def withConfig(config: Config): CommonApi[Config]

Configures the Config for this encoding/decoding run.

Configures the Config for this encoding/decoding run.

def withLogging(createLogger: LevelInfo => Logger): CommonApi[Config]

Enables logging of the encoding/decoding progress to the given Logging.Logger.

Enables logging of the encoding/decoding progress to the given Logging.Logger.

def withPrintLogging(maxShownByteArrayPrefixLen: Int, maxShownStringPrefixLen: Int, maxShownArrayElems: Int, maxShownMapEntries: Int, initialGutterWidth: Int, renderLevelCount: Boolean, renderEndOfInput: Boolean, renderCommas: Boolean, indentation: String, mapKeySep: String): CommonApi[Config]

Enables logging of the encoding/decoding progress to the console. Each data item that is written/received by the application is pretty printed to the console on its own line.

Enables logging of the encoding/decoding progress to the console. Each data item that is written/received by the application is pretty printed to the console on its own line.

def withStringLogging(stringBuilder: StringBuilder, maxShownByteArrayPrefixLen: Int, maxShownStringPrefixLen: Int, maxShownArrayElems: Int, maxShownMapEntries: Int, initialGutterWidth: Int, renderLevelCount: Boolean, renderEndOfInput: Boolean, renderCommas: Boolean, indentation: String, mapKeySep: String, lineSep: String, mapValueOnNewLine: Boolean): CommonApi[Config]

Enables logging of the encoding/decoding progress to the given JStringBuilder.

Enables logging of the encoding/decoding progress to the given JStringBuilder.

def withTransformerAdded(transformer: () => Config): CommonApi[Config]

Allows for injecting additional custom logic into the encoding/decoding process. Used, for example, for on-the-side Logging.

Allows for injecting additional custom logic into the encoding/decoding process. Used, for example, for on-the-side Logging.