Trait

com.avsystem.commons.serialization

Output

Related Doc: package serialization

Permalink

trait Output extends Any

Represents an abstract sink to which a value may be serialized (written). An Output instance should be assumed to be stateful. After calling any of the write methods, it MUST NOT be reused. This means that Output instance can be used only to write a single value. However, if the value to write is complex, one can use writeList/writeSet or writeObject/writeMap.

Linear Supertypes
Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Output
  2. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def getClass(): Class[_]

    Permalink
    Definition Classes
    Any
  2. abstract def writeBigDecimal(bigDecimal: BigDecimal): Unit

    Permalink
  3. abstract def writeBigInt(bigInt: BigInt): Unit

    Permalink
  4. abstract def writeBinary(binary: Array[Byte]): Unit

    Permalink
  5. abstract def writeBoolean(boolean: Boolean): Unit

    Permalink
  6. abstract def writeDouble(double: Double): Unit

    Permalink
  7. abstract def writeInt(int: Int): Unit

    Permalink
  8. abstract def writeList(): ListOutput

    Permalink
  9. abstract def writeLong(long: Long): Unit

    Permalink
  10. abstract def writeNull(): Unit

    Permalink
  11. abstract def writeObject(): ObjectOutput

    Permalink
  12. abstract def writeString(str: String): Unit

    Permalink

Concrete Value Members

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

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

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

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

    Permalink
    Definition Classes
    Any
  5. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  6. def hashCode(): Int

    Permalink
    Definition Classes
    Any
  7. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  8. def legacyOptionEncoding: Boolean

    Permalink

    This ugly workaround has been introduced when standard Option encoding changed from zero-or-one element list encoding to unwrapped-or-null encoding which effectively disallowed serializing null and Some(null).

    This ugly workaround has been introduced when standard Option encoding changed from zero-or-one element list encoding to unwrapped-or-null encoding which effectively disallowed serializing null and Some(null). If some Output implementation still wants to use the list encoding, it may do it by overriding this method and returning true.

  9. def toString(): String

    Permalink
    Definition Classes
    Any
  10. def writeByte(byte: Byte): Unit

    Permalink
  11. def writeChar(char: Char): Unit

    Permalink
  12. def writeFloat(float: Float): Unit

    Permalink
  13. def writeShort(short: Short): Unit

    Permalink
  14. def writeTimestamp(millis: Long): Unit

    Permalink
  15. def writeUnit(): Unit

    Permalink

Inherited from Any

Ungrouped