final class Writer extends AnyRef
Stateful, mutable abstraction for writing a stream of CBOR or JSON data to the given Output.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Writer
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val output: Output
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val target: Target
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
write[T](value: T)(implicit encoder: Encoder[T]): Writer.this.type
- Annotations
- @inline()
- def writeArrayClose(): Writer.this.type
-
def
writeArrayHeader(length: Long): Writer.this.type
- Annotations
- @inline()
-
def
writeArrayHeader(length: Int): Writer.this.type
- Annotations
- @inline()
- def writeArrayOpen(size: Int): Writer.this.type
-
def
writeArrayStart(): Writer.this.type
- Annotations
- @inline()
-
def
writeBoolean(value: Boolean): Writer.this.type
- Annotations
- @inline()
-
def
writeBreak(): Writer.this.type
- Annotations
- @inline()
-
def
writeByte(value: Byte): Writer.this.type
- Annotations
- @inline()
- def writeBytes[Bytes](value: Bytes)(implicit arg0: ByteAccess[Bytes]): Writer.this.type
- def writeBytesIterator[Bytes](iterator: Iterator[Bytes])(implicit arg0: ByteAccess[Bytes]): Writer.this.type
- def writeBytesStart(): Writer.this.type
-
def
writeChar(value: Char): Writer.this.type
- Annotations
- @inline()
-
def
writeChars(value: Array[Char]): Writer.this.type
- Annotations
- @inline()
- def writeDouble(value: Double): Writer.this.type
- def writeEmptyArray(): Writer.this.type
- def writeEmptyMap(): Writer.this.type
-
def
writeEndOfInput(): Writer.this.type
- Annotations
- @inline()
- def writeFloat(value: Float): Writer.this.type
- def writeFloat16(value: Float): Writer.this.type
- def writeIndexedSeq[T](x: IndexedSeq[T])(implicit arg0: Encoder[T]): Writer.this.type
-
def
writeInt(value: Int): Writer.this.type
- Annotations
- @inline()
- def writeIterableOnce[T](iterableOnce: XIterableOnce[T])(implicit arg0: Encoder[T]): Writer.this.type
- def writeIterator[T](iterator: Iterator[T])(implicit arg0: Encoder[T]): Writer.this.type
- def writeLinearSeq[T](x: LinearSeq[T])(implicit arg0: Encoder[T]): Writer.this.type
-
def
writeLong(value: Long): Writer.this.type
- Annotations
- @inline()
- def writeMap[A, B](x: Map[A, B])(implicit arg0: Encoder[A], arg1: Encoder[B]): Writer.this.type
- def writeMapClose(): Writer.this.type
-
def
writeMapHeader(length: Long): Writer.this.type
- Annotations
- @inline()
-
def
writeMapHeader(length: Int): Writer.this.type
- Annotations
- @inline()
- def writeMapOpen(size: Int): Writer.this.type
-
def
writeMapStart(): Writer.this.type
- Annotations
- @inline()
- def writeNull(): Writer.this.type
- def writeNumberString(value: String): Writer.this.type
- def writeOverLong(negative: Boolean, value: Long): Writer.this.type
-
def
writeShort(value: Short): Writer.this.type
- Annotations
- @inline()
- def writeSimpleValue(value: Int): Writer.this.type
-
def
writeString(value: String): Writer.this.type
- Annotations
- @inline()
- def writeStringIterator(iterator: Iterator[String]): Writer.this.type
- def writeTag(value: Tag): Writer.this.type
- def writeText[Bytes](value: Bytes)(implicit arg0: ByteAccess[Bytes]): Writer.this.type
- def writeTextStart(): Writer.this.type
- def writeToArray[A, B, C](a: A, b: B, c: C)(implicit arg0: Encoder[A], arg1: Encoder[B], arg2: Encoder[C]): Writer.this.type
- def writeToArray[A, B](a: A, b: B)(implicit arg0: Encoder[A], arg1: Encoder[B]): Writer.this.type
- def writeToArray[T](x: T)(implicit arg0: Encoder[T]): Writer.this.type
- def writeUndefined(): Writer.this.type
-
def
writingCbor: Boolean
- Annotations
- @inline()
-
def
writingJson: Boolean
- Annotations
- @inline()
-
def
~[T](value: T)(implicit arg0: Encoder[T]): Writer.this.type
- Annotations
- @inline()
-
def
~(value: String): Writer.this.type
- Annotations
- @inline()
-
def
~(value: Double): Writer.this.type
- Annotations
- @inline()
-
def
~(value: Float): Writer.this.type
- Annotations
- @inline()
-
def
~(value: Long): Writer.this.type
- Annotations
- @inline()
-
def
~(value: Int): Writer.this.type
- Annotations
- @inline()
-
def
~(value: Short): Writer.this.type
- Annotations
- @inline()
-
def
~(value: Byte): Writer.this.type
- Annotations
- @inline()
-
def
~(value: Char): Writer.this.type
- Annotations
- @inline()
-
def
~(value: Boolean): Writer.this.type
- Annotations
- @inline()
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated