Package

peds.commons

io

Permalink

package io

Visibility
  1. Public
  2. All

Type Members

  1. trait ConvertFrom[-From, +To] extends (From) ⇒ To

    Permalink

    A base trait for conversion factories.

    A base trait for conversion factories.

    From

    the type of the source format that requests a conversion.

    To

    the type of object to be created.

    Annotations
    @implicitNotFound( ... )
    See also

    Builder

  2. trait Deserializer[Format, T] extends AnyRef

    Permalink

    A Serializer represents a bimap between an object and an array of bytes representing that object.

    A Serializer represents a bimap between an object and an array of bytes representing that object.

    Serializers are loaded using reflection during SUBSYSTEM start-up, where two constructors are tried in order:

    • taking exactly one argument of type akka.actor.ExtendedActorSystem; this should be the preferred one because all reflective loading of classes during deserialization should use ExtendedActorSystem.dynamicAccess (see akka.actor.DynamicAccess), and
    • without arguments, which is only an option if the serializer does not load classes using reflection.

    Be sure to always use the PropertyManager for loading classes! This is necessary to avoid strange match errors and inequalities which arise from different class loaders loading the same class.

  3. class NullBytesSerializer extends Serializer[AnyRef, Array[Byte]] with Deserializer[Array[Byte], AnyRef]

    Permalink

    This is a special Serializer that Serializes and deserializes nulls only

  4. trait Serializer[T, Format] extends AnyRef

    Permalink

    A Serializer represents a bimap between an object and an array of bytes representing that object.

    A Serializer represents a bimap between an object and an array of bytes representing that object.

    Serializers are loaded using reflection during SUBSYSTEM start-up, where two constructors are tried in order:

    • taking exactly one argument of type akka.actor.ExtendedActorSystem; this should be the preferred one because all reflective loading of classes during deserialization should use ExtendedActorSystem.dynamicAccess (see akka.actor.DynamicAccess), and
    • without arguments, which is only an option if the serializer does not load classes using reflection.

    Be sure to always use the PropertyManager for loading classes! This is necessary to avoid strange match errors and inequalities which arise from different class loaders loading the same class.

  5. trait XmlDeserializer[T] extends Deserializer[Node, T]

    Permalink

    Used to deserialize XML nodes into objects example: def input[T]( src: Node )( implicit c: ConvertFrom[Node, T] ) = new XmlDeserializer[T]{}.deserialize(src)

    Used to deserialize XML nodes into objects example: def input[T]( src: Node )( implicit c: ConvertFrom[Node, T] ) = new XmlDeserializer[T]{}.deserialize(src)

  6. trait XmlSerializer[T] extends Serializer[T, Node]

    Permalink

    Used to serialize objects into XML.

    Used to serialize objects into XML.

    example: def output[T]( what: T )( implicit c: ConvertFrom[T, Node] ) = new XmlSerializer[T]{}.serialize(what)

Ungrouped