com.fsist.safepickle

Pickler

trait Pickler[T] extends AnyRef

A way to pickle or unpickle a type.

Annotations
@implicitNotFound( ... )
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Pickler
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract 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.

  2. abstract def schema: Schema

    A schema describing the pickled form generated by this pickler.

  3. abstract def 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.

  4. abstract 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.

    Exceptions thrown
    UnpicklingException

    if the reader provides unexpected input

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. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  16. def toString(): String

    Definition Classes
    AnyRef → Any
  17. lazy val typeName: String

    The full name of the type T.

  18. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped