com.fsist.safepickle

ConvertPickler

abstract class ConvertPickler[T, Other] extends Pickler[T]

Pickles values of type T by converting them to values of type Other, which has an otherPickler provided.

Linear Supertypes
Pickler[T], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ConvertPickler
  2. Pickler
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ConvertPickler()(implicit otherPickler: Pickler[Other], ttag: scala.reflect.api.JavaUniverse.TypeTag[T])

Abstract Value Members

  1. abstract def convertFrom(other: Other): T

  2. abstract def convertTo(t: T): Other

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  15. implicit val otherPickler: Pickler[Other]

  16. def pickle(t: T, writer: PickleWriter[_], emitObjectStart: Boolean = true): Unit

    Should write the value t to the writer.

    Should write the value t to the writer. If the type T contains sub-types for which we have sub-picklers, they should be used by calling writer.write[T](pickler) for those types.

    WARNING: do not call this method directly; use PickleWriter.write with this pickler instead.

    emitObjectStart

    If writing an object, and this argument is true, the pickler will write an ObjectStart token. If false, it will assume an object scope has already been opened, and start emitting attributes.

    Definition Classes
    ConvertPicklerPickler
  17. def schema: Schema

    A schema describing the pickled form generated by this pickler.

    A schema describing the pickled form generated by this pickler.

    Definition Classes
    ConvertPicklerPickler
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  19. def toString(): String

    Definition Classes
    AnyRef → Any
  20. implicit val ttag: scala.reflect.api.JavaUniverse.TypeTag[T]

    A type tag for T.

    A type tag for T. This is used only for implementing typeName; runtime reflection is never used.

    Definition Classes
    ConvertPicklerPickler
  21. lazy val typeName: String

    The full name of the type T.

    The full name of the type T.

    Definition Classes
    Pickler
  22. def unpickle(reader: PickleReader, expectObjectStart: Boolean = true): T

    Should read and parse the reader's current token without advancing it.

    Should read and parse the reader's current token without advancing it. If the type T contains sub-types for which we have sub-picklers, they should be used by calling reader.read[T](pickler) for those types.

    If reading a complex value (object, array) or a series of values, consisting of multiple Reader tokens, should assume the current token when called is the first token to be read, and should leave the last token that was read and processed as the current token.

    WARNING: do not call this method directly; use PickleReader.read with this pickler instead.

    expectObjectStart

    if reading an object, and this argument is true, expect the current reader token to be the object start. If it is false, expect the current token to be the first attribute name inside the object. If not reading an object, ignore this argument.

    Definition Classes
    ConvertPicklerPickler
    Exceptions thrown
    UnpicklingException

    if the reader provides unexpected input

  23. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Pickler[T]

Inherited from AnyRef

Inherited from Any

Ungrouped