Input
Generic Input trait to be implemented by Serialization Implementations
See the docs for Output for the distinction between RAW, NESTED, and FIELD Input/Output. The only difference for Input is that there aren't readNestedXXX() methods. Instead the way fields for objects are read is:
- readFieldNumber(...) to get the name/number of the field
- readNestedXXX() to get the value of the field (based on looking up the proper type given the name/number)
Attributes
- Graph
-
- Supertypes
-
trait RawInputtrait CollectionInputtrait FieldInputtrait NestedInputclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class BSONInputclass JsonParserInputclass JSONInputclass JSONByteArrayInputclass JSONCharSequenceInputclass JSONReaderInputclass ProtobufInputclass ProtobufByteArrayInputclass ProtobufByteBufferInputclass ProtobufInputStreamInputclass ValidationInputShow all
Members list
Value members
Inherited methods
Attributes
- Inherited from:
- RawInput
Is there another element to read in the collection?
The last field name that was read (if any)
The last field number that was read (if any)
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:
- RawInput
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
- Inherited from:
- FieldInput
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
- Inherited from:
- FieldInput
Attributes
- Inherited from:
- NestedInput
Attributes
- Inherited from:
- NestedInput
Attributes
- Inherited from:
- NestedInput
Attributes
- Inherited from:
- NestedInput
Attributes
- Inherited from:
- NestedInput
Attributes
- Inherited from:
- NestedInput
Attributes
- Inherited from:
- NestedInput
Attributes
- Inherited from:
- NestedInput
Attributes
- Inherited from:
- NestedInput
Attributes
- Inherited from:
- NestedInput
Attributes
- Inherited from:
- NestedInput
Attributes
- Inherited from:
- NestedInput
Attributes
- Inherited from:
- NestedInput
Attributes
- Inherited from:
- NestedInput
Attributes
- Inherited from:
- NestedInput
Attributes
- Inherited from:
- NestedInput
Attributes
- Inherited from:
- NestedInput
Attributes
- Inherited from:
- RawInput
Attributes
- Inherited from:
- RawInput
Attributes
- Inherited from:
- RawInput
Attributes
- Inherited from:
- RawInput
Attributes
- Inherited from:
- RawInput
Attributes
- Inherited from:
- RawInput
Attributes
- Inherited from:
- RawInput
Attributes
- Inherited from:
- RawInput
Attributes
- Inherited from:
- RawInput
Attributes
- Inherited from:
- RawInput
Attributes
- Inherited from:
- RawInput
Attributes
- Inherited from:
- RawInput
Attributes
- Inherited from:
- RawInput
Attributes
- Inherited from:
- RawInput
Attributes
- Inherited from:
- RawInput
Attributes
- Inherited from:
- RawInput
Attributes
- Inherited from:
- RawInput
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
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
- Inherited from:
- FieldInput