JSONCharSequenceInput

fm.serializer.json.JSONCharSequenceInput
final class JSONCharSequenceInput(chars: CharSequence, options: JSONDeserializerOptions) extends JSONInput

Attributes

Graph
Supertypes
class JSONInput
trait Input
trait RawInput
trait FieldInput
trait NestedInput
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

final def allowStringMap: Boolean

Attributes

Inherited from:
JSONInput
final def expectNextChar(ch: Int): Unit

Attributes

Inherited from:
JSONInput
final def handleCollectionComma(): Unit

Attributes

Inherited from:
JSONInput
final def handleFieldComma(): Unit

Attributes

Inherited from:
JSONInput
final def hasAnotherElement: Boolean

Is there another element to read in the collection?

Is there another element to read in the collection?

Attributes

Inherited from:
JSONInput
final override def lastFieldName(): String

The last field name that was read (if any)

The last field name that was read (if any)

Attributes

Definition Classes
Inherited from:
JSONInput
final override def lastFieldNumber(): Int

The last field number that was read (if any)

The last field number that was read (if any)

Attributes

Definition Classes
Inherited from:
JSONInput
final def nextValueIsNull: Boolean

Returns true if the next value is known to be null otherwise false if the value is not null or is unknown. This means that even if the next value ends up being null this can return false.

Returns true if the next value is known to be null otherwise false if the value is not null or is unknown. This means that even if the next value ends up being null this can return false.

Note: If the next value is null then this method should consume that input

Attributes

Inherited from:
JSONInput
final override def readFieldName(): String

If dynamic string maps are supported then this should be implemented otherwise this can just throw an exception.

If dynamic string maps are supported then this should be implemented otherwise this can just throw an exception.

null should be returns on the end of an object/message

Attributes

Definition Classes
Inherited from:
JSONInput
final override def readFieldNumber(nameToNumMap: FieldNameToNumberLookup): Int

This is for reading fields of an object.

This is for reading fields of an object.

Return the field number for the next readable field. Returns 0 if we've reached the end of the object/message

Attributes

Definition Classes
Inherited from:
JSONInput
final def readNestedBigDecimal(): BigDecimal

Attributes

Inherited from:
JSONInput
final def readNestedBigInteger(): BigInteger

Attributes

Inherited from:
JSONInput
final def readNestedBool(): Boolean

Attributes

Inherited from:
JSONInput
final def readNestedByteArray(): Array[Byte]

Attributes

Inherited from:
JSONInput
final def readNestedCollection[T](f: CollectionInput => T): T

Attributes

Inherited from:
JSONInput
final def readNestedDouble(): Double

Attributes

Inherited from:
JSONInput
final def readNestedFixedInt(): Int

Attributes

Inherited from:
JSONInput
final def readNestedFixedLong(): Long

Attributes

Inherited from:
JSONInput
final def readNestedFloat(): Float

Attributes

Inherited from:
JSONInput
final def readNestedInt(): Int

Attributes

Inherited from:
JSONInput
final def readNestedLong(): Long

Attributes

Inherited from:
JSONInput
final def readNestedObject[T](f: FieldInput => T): T

Attributes

Inherited from:
JSONInput
final def readNestedSignedInt(): Int

Attributes

Inherited from:
JSONInput
final def readNestedSignedLong(): Long

Attributes

Inherited from:
JSONInput
final def readNestedString(): String

Attributes

Inherited from:
JSONInput
final def readNestedUnsignedInt(): Int

Attributes

Inherited from:
JSONInput
final def readNestedUnsignedLong(): Long

Attributes

Inherited from:
JSONInput
final def readRawBigDecimal(): BigDecimal

Attributes

Inherited from:
JSONInput
final def readRawBigInteger(): BigInteger

Attributes

Inherited from:
JSONInput
final def readRawBool(): Boolean

Attributes

Inherited from:
JSONInput
final def readRawByteArray(): Array[Byte]

Attributes

Inherited from:
JSONInput
final def readRawCollection[T](f: CollectionInput => T): T

Attributes

Inherited from:
JSONInput
final def readRawDouble(): Double

Attributes

Inherited from:
JSONInput
final def readRawFixedInt(): Int

Attributes

Inherited from:
JSONInput
final def readRawFixedLong(): Long

Attributes

Inherited from:
JSONInput
final def readRawFloat(): Float

Attributes

Inherited from:
JSONInput
final def readRawInt(): Int

Attributes

Inherited from:
JSONInput
final def readRawLong(): Long

Attributes

Inherited from:
JSONInput
final def readRawObject[T](f: FieldInput => T): T

Attributes

Inherited from:
JSONInput
final def readRawSignedInt(): Int

Attributes

Inherited from:
JSONInput
final def readRawSignedLong(): Long

Attributes

Inherited from:
JSONInput
final def readRawString(): String

Attributes

Inherited from:
JSONInput
final def readRawUnsignedInt(): Int

Attributes

Inherited from:
JSONInput
final def readRawUnsignedLong(): Long

Attributes

Inherited from:
JSONInput
def reportUnsetField[T](number: Int, name: String, hasUserDefinedDefaultValue: Boolean, deserializer: Deserializer[T]): Unit

This is for reporting that fields for an object were not read and whether or not they had a user-defined default value.

This is for reporting that fields for an object were not read and whether or not they had a user-defined default value.

Value parameters

deserializer

The deserializer for the field. Note: This can be null.

hasUserDefinedDefaultValue

Whether or not there was a user defined default value (e.g. val foo: Int = 123)

name

The field name. Note: This can be null.

number

The field number

Attributes

Inherited from:
FieldInput
final override def skipUnknownField(): Unit

Skip an unknown field value.

Skip an unknown field value.

If after calling readFieldNumber(...) we don't know how to handle the resulting field number then this method can be called to skip the value of the field after which we can call readFieldNumber(...) again.

Attributes

Definition Classes
Inherited from:
JSONInput