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 calling nextField() again. For this reason,
ObjectInput is not an Iterator despite having similar interface
(Iterator would easily allow e.g. conversion to List[(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.
NOTE: The order of keys returned by subsequent invocations of nextField() may be arbitrary and in particular
may not match the order in which keys were written to corresponding ObjectOutput.
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.NOTE: The order of keys returned by subsequent invocations of
nextField()
may be arbitrary and in particular may not match the order in which keys were written to corresponding ObjectOutput.