Class

com.avsystem.commons.serialization.json

JsonStringFieldInput

Related Doc: package json

Permalink

final class JsonStringFieldInput extends JsonStringInput with FieldInput

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsonStringFieldInput
  2. FieldInput
  3. JsonStringInput
  4. AfterElement
  5. InputAndSimpleInput
  6. SimpleInput
  7. Input
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JsonStringFieldInput(fieldName: String, reader: JsonReader, options: JsonOptions, objectInput: JsonObjectInput)

    Permalink

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def afterElement(): Unit

    Permalink
    Definition Classes
    JsonStringInputAfterElement
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. val fieldName: String

    Permalink
    Definition Classes
    JsonStringFieldInputFieldInput
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. 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 Input implementation still wants to use the list encoding, it may do it by overriding this method and returning true.

    Definition Classes
    Input
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. def readBigDecimal(): BigDecimal

    Permalink
    Definition Classes
    JsonStringInputSimpleInput
  19. def readBigInt(): BigInt

    Permalink
    Definition Classes
    JsonStringInputSimpleInput
  20. def readBinary(): Array[Byte]

    Permalink
    Definition Classes
    JsonStringInputSimpleInput
  21. def readBoolean(): Boolean

    Permalink
    Definition Classes
    JsonStringInputSimpleInput
  22. def readByte(): Byte

    Permalink
    Definition Classes
    SimpleInput
  23. def readChar(): Char

    Permalink
    Definition Classes
    SimpleInput
  24. def readCustom[T](typeMarker: TypeMarker[T]): commons.Opt[T]

    Permalink

    Attempts to read some arbitrary custom "native" value that this input may or may not support.

    Attempts to read some arbitrary custom "native" value that this input may or may not support. The custom type is identified by an instance of TypeMarker which is usually an object (e.g. companion object of the custom T type itself). This way Input and Output implementations may support other native types than the ones supported by default by Input and Output interfaces.

    Codecs may use this method to optimize encoded format in case it it possible with particular Input implementation. GenCodec may generally assume that if the data was written by a corresponding Output which also support this custom native type then readCustom should return non-empty value.

    Opt.Empty returned by this method indicates that this input does not support this particular type. If it supports it but there was some error reading it then a ReadFailure should be thrown instead of returning Opt.Empty.

    Definition Classes
    JsonStringInputInput
  25. def readDouble(): Double

    Permalink
    Definition Classes
    JsonStringInputSimpleInput
  26. def readFloat(): Float

    Permalink
    Definition Classes
    JsonStringInputSimpleInput
  27. def readInt(): Int

    Permalink
    Definition Classes
    JsonStringInputSimpleInput
  28. def readList(): JsonListInput

    Permalink
    Definition Classes
    JsonStringInputInput
  29. def readLong(): Long

    Permalink
    Definition Classes
    JsonStringInputSimpleInput
  30. def readMetadata[T](metadata: InputMetadata[T]): commons.Opt[T]

    Permalink

    Attempts to read some arbitrary "metadata" about this input instance.

    Attempts to read some arbitrary "metadata" about this input instance. Metadata is identified by InputMetadata which is usually an object (e.g. companion object of metadata value type T). An example of InputMetadata is JsonType supported by JsonStringInput.

    Codecs may use this method to optimize encoded format in case it it possible with particular Input implementation. GenCodec may generally assume that if the data was written by a corresponding Output that preserves particular metadata type (which may be determined by Output.keepsMetadata()) then readMetadata will return a non-empty value.

    Opt.Empty may be returned form this method ONLY if this Input implementation does not support this metadata type AT ALL. Any errors should be signaled by throwing ReadFailure.

    Definition Classes
    JsonStringInputInput
  31. def readNull(): Boolean

    Permalink

    Attempts to read null value from an Input.

    Attempts to read null value from an Input. Returning true means that input instance contained a null value. Its state should then be changed so that input can be considered "consumed" (no other reads are possible on this instance). Returning false means that the input contains something else than a null value. Its state must not change in this situation and it must be possible to call some other read method on it.

    Definition Classes
    JsonStringInputInput
  32. def readObject(): JsonObjectInput

    Permalink
    Definition Classes
    JsonStringInputInput
  33. def readRawJson(): String

    Permalink
    Definition Classes
    JsonStringInput
  34. def readShort(): Short

    Permalink
    Definition Classes
    SimpleInput
  35. final def readSimple(): SimpleInput

    Permalink
    Definition Classes
    InputAndSimpleInputInput
  36. def readString(): String

    Permalink
    Definition Classes
    JsonStringInputSimpleInput
  37. def readTimestamp(): Long

    Permalink
    Definition Classes
    JsonStringInputSimpleInput
  38. def skip(): Unit

    Permalink

    Ignores this input and skips its contents internally, if necessary

    Ignores this input and skips its contents internally, if necessary

    Definition Classes
    JsonStringInputInput
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  40. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  41. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from FieldInput

Inherited from JsonStringInput

Inherited from AfterElement

Inherited from InputAndSimpleInput

Inherited from SimpleInput

Inherited from Input

Inherited from AnyRef

Inherited from Any

Ungrouped