MessageCodec

wvlet.airframe.codec.MessageCodec
See theMessageCodec companion object
trait MessageCodec[A] extends LogSupport

Attributes

Companion
object
Graph
Supertypes
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes
class IndexedSeqCodec[A]
class JavaListCodec[A]
class ListCodec[A]
class MapCodecBase[A, B, MapType]
class JavaMapCodec[A, B]
class ListMapCodec[A, B]
class MapCodec[A, B]
class SeqCodec[A]
class EnumCodec[A]
object BigDecimalCodec.type
object JavaSqlArrayCodec.type
object JavaSqlDateCodec.type
object JavaSqlTimeCodec.type
object JavaSqlTimestampCodec.type
object JSONCodec.type
object JSONValueCodec.type
object JavaInstantTimeCodec.type
object FileCodec.type
class JavaEnumCodec[A]
object ZonedDateTimeCodec.type
object JavaUtilDateCodec.type
class LazyCodec[A]
object CountCodec.type
object DataSizeCodec.type
object ElapsedTimeCodec.type
class ObjectCodec[A]
class ObjectMapCodec[A]
object PrefixedULIDCodec.type
object AnyArrayCodec.type
class AnyCodec
object BooleanArrayCodec.type
object ByteArrayCodec.type
object CharArrayCodec.type
object DoubleArrayCodec.type
object FloatArrayCodec.type
object IntArrayCodec.type
object LongArrayCodec.type
trait PrimitiveCodec[A]
object BigIntCodec.type
object BigIntegerCodec.type
object BooleanCodec.type
object ByteCodec.type
object CharCodec.type
object DoubleCodec.type
object FloatCodec.type
object IntCodec.type
object LongCodec.type
object ShortCodec.type
object StringCodec.type
object UnitCodec.type
object RawMsgPackCodec.type
object ShortArrayCodec.type
object StringArrayCodec.type
object ValueCodec.type
object RawJsonCodec.type
class EitherCodec[A, B]
class OptionCodec[A]
class TupleCodec
object ThrowableCodec.type
object ULIDCodec.type
object UUIDCodec.type
class UnionCodec
Show all

Members list

Value members

Abstract methods

def pack(p: Packer, v: A): Unit
def unpack(u: Unpacker, v: MessageContext): Unit

Concrete methods

def fromJson(json: String): A
def fromJson(json: Array[Byte]): A
def fromMap(m: Map[String, Any]): A
def fromMsgPack(msgpack: Array[Byte]): A
def fromString(s: String): A

A shortcut for fromMsgPack(StringCodec.toMsgPack(s))

A shortcut for fromMsgPack(StringCodec.toMsgPack(s))

Attributes

def pack(v: A): MsgPack

Converting the object into MessagePack (= Array[Byte])

Converting the object into MessagePack (= Array[Byte])

Attributes

def toJSONObject(v: A): JSONObject
def toJson(v: A): String
def toMsgPack(v: A): Array[Byte]
def unpack(msgpack: MsgPack): A

Converting the input MessagePack into an object. If the conversion fails, throw an IllegalArgumentException

Converting the input MessagePack into an object. If the conversion fails, throw an IllegalArgumentException

Attributes

def unpackBytes(msgpack: Array[Byte]): Option[A]
def unpackBytes(msgpack: Array[Byte], offset: Int, len: Int): Option[A]
def unpackJson(json: String): Option[A]
def unpackMsgPack(msgpack: Array[Byte]): Option[A]
def unpackMsgPack(msgpack: Array[Byte], offset: Int, len: Int): Option[A]

Inherited methods

inline protected def debug(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def debug(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def error(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def error(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def info(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def info(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def logAt(inline logLevel: LogLevel, inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def trace(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def trace(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def warn(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def warn(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods