com.fsist.safepickle

PickleWriter

trait PickleWriter[+Repr] extends AnyRef

Writes a stream of tokens to an internal mutable buffer.

Instances are assumed to be mutable and not safe for concurrent write access, with some sort of mutable buffer or builder collecting the Result.

Methods may, but are not required to, fail with an IllegalStateException if called in an illegal sequence (e.g. writeAttributeName twice in a row).

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PickleWriter
  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 result(): Repr

    Returns everything written so far.

    Returns everything written so far.

    May optionally fail with an IllegalStateException if the data written is not valid, e.g. an open Object or Array has not been closed. However, implementations are not required to validate the produced result.

  2. abstract def writeArrayEnd(): PickleWriter.this.type

  3. abstract def writeArrayStart(): PickleWriter.this.type

  4. abstract def writeAttributeName(name: String): PickleWriter.this.type

    After writing an attribute name, write its value using one of the other writeXxx methods

  5. abstract def writeBoolean(boolean: Boolean): PickleWriter.this.type

  6. abstract def writeDouble(double: Double): PickleWriter.this.type

  7. abstract def writeFloat(float: Float): PickleWriter.this.type

  8. abstract def writeInt(int: Int): PickleWriter.this.type

  9. abstract def writeLong(long: Long): PickleWriter.this.type

  10. abstract def writeNull(): PickleWriter.this.type

  11. abstract def writeObjectEnd(): PickleWriter.this.type

  12. abstract def writeObjectStart(): PickleWriter.this.type

  13. abstract def writeString(string: String): PickleWriter.this.type

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. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. def write[T](t: T, emitObjectStart: Boolean = true)(implicit pickler: Pickler[T]): PickleWriter.this.type

    Can be overridden by a particular implementation to intercept certain types, based on runtime type checking of t, and write them in some backend-specific way without using the provided pickler.

    Can be overridden by a particular implementation to intercept certain types, based on runtime type checking of t, and write them in some backend-specific way without using the provided pickler.

    Otherwise, if the type is not being overridden, delegates to the pickler provided.

Inherited from AnyRef

Inherited from Any

Ungrouped