static Object readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy, int number) throws IOException final Schema<Object> derivedSchema = strategy.resolvePojoFrom(input, number).getSchema();
static Object readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy, int number) throws IOException final Schema<Object> derivedSchema = strategy.resolvePojoFrom(input, number).getSchema();
/** * Delegates to the schema derived from the input. The {@code owner} owns the message (polymorphic) that is tied to * this schema. */ @Override public void mergeFrom(Input input, final Object owner) throws IOException { final int first = input.readFieldNumber(this); if (first != ID_POJO) throw new ProtostuffException("order not preserved."); doMergeFrom(input, strategy.resolvePojoFrom(input, ID_POJO).getSchema(), owner); }
/** * Delegates to the schema derived from the input. The {@code owner} owns the message (polymorphic) that is tied to * this schema. */ @Override public void mergeFrom(Input input, final Object owner) throws IOException { final int first = input.readFieldNumber(this); if (first != ID_POJO) throw new ProtostuffException("order not preserved."); doMergeFrom(input, strategy.resolvePojoFrom(input, ID_POJO).getSchema(), owner); }
static Object readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy, int number) throws IOException { final Schema<Object> derivedSchema = strategy.resolvePojoFrom(input, number).getSchema(); final Object pojo = derivedSchema.newMessage(); if (input instanceof GraphInput) { // update the actual reference. ((GraphInput) input).updateLast(pojo, owner); } derivedSchema.mergeFrom(input, pojo); return pojo; }
static Object readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy, int number) throws IOException { final Schema<Object> derivedSchema = strategy.resolvePojoFrom(input, number).getSchema(); final Object pojo = derivedSchema.newMessage(); if (input instanceof GraphInput) { // update the actual reference. ((GraphInput) input).updateLast(pojo, owner); } derivedSchema.mergeFrom(input, pojo); return pojo; }
static Object readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy, int number) throws IOException { final Schema<Object> derivedSchema = strategy.resolvePojoFrom(input, number).getSchema(); final Object pojo = derivedSchema.newMessage(); if (input instanceof GraphInput) { // update the actual reference. ((GraphInput) input).updateLast(pojo, owner); } derivedSchema.mergeFrom(input, pojo); return pojo; }
static Object readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy, int number) throws IOException { final Schema<Object> derivedSchema = strategy.resolvePojoFrom(input, number).getSchema(); final Object pojo = derivedSchema.newMessage(); if (input instanceof GraphInput) { // update the actual reference. ((GraphInput) input).updateLast(pojo, owner); } derivedSchema.mergeFrom(input, pojo); return pojo; }
static Object readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy, int number) throws IOException { final Schema<Object> derivedSchema = strategy.resolvePojoFrom(input, number).getSchema(); final Object pojo = derivedSchema.newMessage(); if (input instanceof GraphInput) { // update the actual reference. ((GraphInput) input).updateLast(pojo, owner); } derivedSchema.mergeFrom(input, pojo); return pojo; }
static Object readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy, int number) throws IOException { final Schema<Object> derivedSchema = strategy.resolvePojoFrom(input, number).getSchema(); final Object pojo = derivedSchema.newMessage(); if (input instanceof GraphInput) { // update the actual reference. ((GraphInput) input).updateLast(pojo, owner); } derivedSchema.mergeFrom(input, pojo); return pojo; }
final Schema<Object> derivedSchema = strategy.resolvePojoFrom( input, number).getSchema();
final Schema<Object> derivedSchema = strategy.resolvePojoFrom( input, number).getSchema();
final HasSchema<Object> hs = strategy.resolvePojoFrom(input, number); case ID_POJO: final Schema<Object> derivedSchema = strategy.resolvePojoFrom( input, number).getSchema();
final HasSchema<Object> hs = strategy.resolvePojoFrom(input, number); case ID_POJO: final Schema<Object> derivedSchema = strategy.resolvePojoFrom( input, number).getSchema();