Returns FieldInput that represents next field of this object.
Returns FieldInput that represents next field of this object.
You MUST NOT call nextField()
again until this FieldInput
is fully read or skipped.
Subsequent invocations of nextField
MUST return fields in exactly the same order as they were written
using ObjectOutput.writeField.
In other words, serialization format MUST preserve order of object fields.
Represents an abstract source of key-value mappings that can be deserialized. ObjectInput instance is stateful and MUST be read strictly sequentially. This means, you MUST fully exhaust any Input instance returned by
nextField()
before callingnextField()
again. For this reason, ObjectInput is not anIterator
despite having similar interface (Iterator
would easily allow e.g. conversion toList[(String, Input)]
which would be illegal).ObjectInput MUST always be fully exhausted. In order to ignore any remaining key-value mappings,
skipRemaining()
may be used.