nak.serialization

TextSerialization

object TextSerialization extends SerializationFormat with PrimitiveTypes with CompoundTypes with StringSerialization

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TextSerialization
  2. StringSerialization
  3. ByteSerialization
  4. CompoundTypes
  5. PrimitiveTypes
  6. SerializationFormat
  7. Serializable
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract class Constructible[V, RW] extends (CompoundTypes.this)#ReadWritable[V]

    Constructable provides a simple way to add serialization support to a more basic type.

    Constructable provides a simple way to add serialization support to a more basic type. In a companion object, extend a SerializationFormat's Constructable as an implicit object.

    Definition Classes
    CompoundTypes
  2. type Input = TextReader

    The place to read data from.

    The place to read data from.

    Definition Classes
    TextSerializationSerializationFormat
  3. type Output = TextWriter

    The place to write data to.

    The place to write data to.

    Definition Classes
    TextSerializationSerializationFormat
  4. trait ReadWritable[T] extends Readable[T] with Writable[T]

    A convenience wrapper for Readable and Writable.

    A convenience wrapper for Readable and Writable.

    Definition Classes
    SerializationFormat
  5. trait Readable[+T] extends Serializable

    Inner trait for reading from Input.

    Inner trait for reading from Input.

    Definition Classes
    SerializationFormat
  6. trait Writable[T] extends Serializable

    Inner trait for writing to Output.

    Inner trait for writing to Output.

    Definition Classes
    SerializationFormat

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. implicit def arrayReadWritable[T](implicit tH: ReadWritable[T], man: ClassTag[T]): ReadWritable[Array[T]]

    Definition Classes
    CompoundTypes
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. implicit val booleanReadWritable: ReadWritable[Boolean]

    Definition Classes
    TextSerializationPrimitiveTypes
  7. implicit val byteReadWritable: ReadWritable[Byte]

    Definition Classes
    TextSerializationPrimitiveTypes
  8. implicit val charReadWritable: ReadWritable[Char]

    Definition Classes
    TextSerializationPrimitiveTypes
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def collectionFromElements[K, V, CC[K, V] <: Map[K, V] with MapLike[K, V, CC[K, V]]](c: MapFactory[CC], name: String)(implicit arg0: ReadWritable[K], arg1: ReadWritable[V]): ReadWritable[CC[K, V]]

    Map collection types.

    Map collection types.

    Attributes
    protected
    Definition Classes
    CompoundTypes
  11. def collectionFromElements[T, CC[T] <: Iterable[T]](c: GenericCompanion[CC], name: String)(implicit arg0: ReadWritable[T]): ReadWritable[CC[T]]

    Standard collection types.

    Standard collection types.

    Attributes
    protected
    Definition Classes
    CompoundTypes
  12. implicit def counter2ReadWritable[T, U, V](implicit arg0: ReadWritable[T], arg1: ReadWritable[U], arg2: ReadWritable[V], arg3: Zero[V], arg4: Field[V]): ReadWritable[Counter2[T, U, V]]

    Definition Classes
    CompoundTypes
  13. implicit def counterReadWritable[T, V](implicit arg0: ReadWritable[T], arg1: ReadWritable[V], arg2: Zero[V], arg3: Field[V]): ReadWritable[Counter[T, V]]

    Definition Classes
    CompoundTypes
  14. implicit val doubleReadWritable: ReadWritable[Double]

    Definition Classes
    TextSerializationPrimitiveTypes
  15. def encoding: String

    Encoding used by this StringSerialization instance.

    Encoding used by this StringSerialization instance. Defaults to UTF8, independent of platform.

    Definition Classes
    StringSerialization
  16. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. implicit val floatReadWritable: ReadWritable[Float]

    Definition Classes
    TextSerializationPrimitiveTypes
  20. def fromBytes[T](bytes: Array[Byte])(implicit arg0: Readable[T]): T

    Returns fromString called on the string created using the this.

    Returns fromString called on the string created using the this.encoding as the byte encoding of given bytes.

    Definition Classes
    StringSerializationByteSerialization
  21. def fromString[T](str: String)(implicit arg0: Readable[T]): T

    Demarshalls a value from the given string.

    Demarshalls a value from the given string.

    Definition Classes
    TextSerializationStringSerialization
  22. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  23. def getReadWritable[T](implicit arg0: ReadWritable[T]): ReadWritable[T]

    Definition Classes
    SerializationFormat
  24. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  25. implicit def indexReadWritable[T](implicit arg0: ReadWritable[T]): ReadWritable[Index[T]]

    Definition Classes
    CompoundTypes
  26. implicit def indexedSeqReadWritable[T](implicit tH: ReadWritable[T]): ReadWritable[IndexedSeq[T]]

    Definition Classes
    CompoundTypes
  27. implicit val intReadWritable: ReadWritable[Int]

    Definition Classes
    TextSerializationPrimitiveTypes
  28. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  29. implicit def iterableReadWritable[T](implicit tH: ReadWritable[T]): ReadWritable[Iterable[T]]

    Definition Classes
    CompoundTypes
  30. implicit def iteratorReadWritable[T](implicit tH: ReadWritable[T]): ReadWritable[Iterator[T]]

    Definition Classes
    CompoundTypes
  31. implicit def listReadWritable[T](implicit tH: ReadWritable[T]): ReadWritable[List[T]]

    Definition Classes
    CompoundTypes
  32. implicit val longReadWritable: ReadWritable[Long]

    Definition Classes
    TextSerializationPrimitiveTypes
  33. implicit def mapReadWritable[K, V](implicit arg0: ReadWritable[K], arg1: ReadWritable[V]): ReadWritable[Map[K, V]]

    Definition Classes
    CompoundTypes
  34. def mkStringReadWritable(quote: Char = '"'): ReadWritable[String]

  35. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  38. implicit def optionReadWritable[T](implicit arg0: ReadWritable[T]): ReadWritable[Option[T]]

    Definition Classes
    CompoundTypes
  39. def read[T](source: Input)(implicit arg0: Readable[T]): T

    Sugar for implicitly[Readable[T]].

    Sugar for implicitly[Readable[T]].read(source);

    Definition Classes
    SerializationFormat
  40. def readBuildable[T, To](in: Input, builder: Builder[T, To])(implicit arg0: Readable[T]): To

    Reads elements of type T into the given buildable.

    Reads elements of type T into the given buildable. Inverse of writeIterable.

    Attributes
    protected
    Definition Classes
    TextSerializationCompoundTypes
  41. def readName(src: Input): String

    Reads a name from the input, consisting of letters, digits, underscore, period, and dollar sign.

    Reads a name from the input, consisting of letters, digits, underscore, period, and dollar sign.

    Definition Classes
    TextSerializationCompoundTypes
  42. def readTupleEnd(in: Input): Unit

    Attributes
    protected
    Definition Classes
    TextSerializationCompoundTypes
  43. def readTupleGlue(in: Input): Unit

    Attributes
    protected
    Definition Classes
    TextSerializationCompoundTypes
  44. def readTupleStart(in: Input): Unit

    Attributes
    protected
    Definition Classes
    TextSerializationCompoundTypes
  45. implicit def seqReadWritable[T](implicit tH: ReadWritable[T]): ReadWritable[Seq[T]]

    Definition Classes
    CompoundTypes
  46. implicit def setReadWritable[T](implicit tH: ReadWritable[T]): ReadWritable[Set[T]]

    Definition Classes
    CompoundTypes
  47. implicit val shortReadWritable: ReadWritable[Short]

    Definition Classes
    TextSerializationPrimitiveTypes
  48. implicit val stringReadWritable: ReadWritable[String]

    Definition Classes
    TextSerializationPrimitiveTypes
  49. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  50. def toBytes[T](x: T)(implicit arg0: Writable[T]): Array[Byte]

    Returns a byte array using the this.

    Returns a byte array using the this.encoding as the byte encoding of the value returned by toString.

    Definition Classes
    StringSerializationByteSerialization
  51. def toString[T](value: T)(implicit arg0: Writable[T]): String

    Marshalls the given value as a string.

    Marshalls the given value as a string.

    Definition Classes
    TextSerializationStringSerialization
  52. def toString(): String

    Definition Classes
    AnyRef → Any
  53. implicit def tuple2ReadWritable[T1, T2](implicit t1H: ReadWritable[T1], t2H: ReadWritable[T2]): ReadWritable[(T1, T2)]

    Definition Classes
    CompoundTypes
  54. implicit def tuple3ReadWritable[T1, T2, T3](implicit t1H: ReadWritable[T1], t2H: ReadWritable[T2], t3H: ReadWritable[T3]): ReadWritable[(T1, T2, T3)]

    Definition Classes
    CompoundTypes
  55. implicit def tuple4ReadWritable[T1, T2, T3, T4](implicit t1H: ReadWritable[T1], t2H: ReadWritable[T2], t3H: ReadWritable[T3], t4H: ReadWritable[T4]): ReadWritable[(T1, T2, T3, T4)]

    Definition Classes
    CompoundTypes
  56. implicit val unitReadWritable: ReadWritable[Unit]

  57. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  60. def write[T](sink: Output, what: T)(implicit arg0: Writable[T]): Unit

    Sugar for implicitly[Writable[T]].

    Sugar for implicitly[Writable[T]].write(sink,what);

    Definition Classes
    SerializationFormat
  61. def writeIterable[T, CC <: Iterable[T]](sink: Output, coll: CC, name: String)(implicit arg0: Writable[T]): Unit

    Writes elements of the given collection.

    Writes elements of the given collection. Inverse of readBuildable.

    Attributes
    protected
    Definition Classes
    TextSerializationCompoundTypes
  62. def writeName(out: Output, name: String): Unit

    Definition Classes
    TextSerializationCompoundTypes
  63. def writeNameOpt(out: Output, name: String): Unit

    writeNameOpt is like writeName, but Serialization formats aren't required to use it.

    writeNameOpt is like writeName, but Serialization formats aren't required to use it. Defaults to just calling writeName

    Attributes
    protected
    Definition Classes
    CompoundTypes
  64. def writeTupleEnd(out: Output): Unit

    Attributes
    protected
    Definition Classes
    TextSerializationCompoundTypes
  65. def writeTupleGlue(out: Output): Unit

    Attributes
    protected
    Definition Classes
    TextSerializationCompoundTypes
  66. def writeTupleStart(out: Output): Unit

    Attributes
    protected
    Definition Classes
    TextSerializationCompoundTypes
  67. def writesNames: Boolean

    If you override writeNameOpt to do nothing, override this

    If you override writeNameOpt to do nothing, override this

    Attributes
    protected
    Definition Classes
    CompoundTypes

Inherited from StringSerialization

Inherited from ByteSerialization

Inherited from CompoundTypes

Inherited from PrimitiveTypes

Inherited from SerializationFormat

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped