static void transferObject(Pipe.Schema<Object> pipeSchema, Pipe pipe, Input input, Output output, IdStrategy strategy) throws IOException { final int number = input.readFieldNumber(pipeSchema.wrappedSchema); switch (number) { case ID_CLASS: ObjectSchema.transferClass(pipe, input, output, number, pipeSchema, false, false, strategy); break; case ID_CLASS_MAPPED: ObjectSchema.transferClass(pipe, input, output, number, pipeSchema, true, false, strategy); break; case ID_CLASS_ARRAY: ObjectSchema.transferClass(pipe, input, output, number, pipeSchema, false, true, strategy); break; case ID_CLASS_ARRAY_MAPPED: ObjectSchema.transferClass(pipe, input, output, number, pipeSchema, true, true, strategy); break; default: throw new ProtostuffException("Corrupt input."); } if (0 != input.readFieldNumber(pipeSchema.wrappedSchema)) throw new ProtostuffException("Corrupt input."); }
static void transferObject(Pipe.Schema<Object> pipeSchema, Pipe pipe, Input input, Output output, IdStrategy strategy) throws IOException { final int number = input.readFieldNumber(pipeSchema.wrappedSchema); switch (number) { case ID_CLASS: ObjectSchema.transferClass(pipe, input, output, number, pipeSchema, false, false, strategy); break; case ID_CLASS_MAPPED: ObjectSchema.transferClass(pipe, input, output, number, pipeSchema, true, false, strategy); break; case ID_CLASS_ARRAY: ObjectSchema.transferClass(pipe, input, output, number, pipeSchema, false, true, strategy); break; case ID_CLASS_ARRAY_MAPPED: ObjectSchema.transferClass(pipe, input, output, number, pipeSchema, true, true, strategy); break; default: throw new ProtostuffException("Corrupt input."); } if (0 != input.readFieldNumber(pipeSchema.wrappedSchema)) throw new ProtostuffException("Corrupt input."); }
return; case ID_CLASS: transferClass(pipe, input, output, number, pipeSchema, false, false, strategy); break; case ID_CLASS_MAPPED: transferClass(pipe, input, output, number, pipeSchema, true, false, strategy); break; case ID_CLASS_ARRAY: transferClass(pipe, input, output, number, pipeSchema, false, true, strategy); break; case ID_CLASS_ARRAY_MAPPED: transferClass(pipe, input, output, number, pipeSchema, true, true, strategy); break;
return; case ID_CLASS: transferClass(pipe, input, output, number, pipeSchema, false, false, strategy); break; case ID_CLASS_MAPPED: transferClass(pipe, input, output, number, pipeSchema, true, false, strategy); break; case ID_CLASS_ARRAY: transferClass(pipe, input, output, number, pipeSchema, false, true, strategy); break; case ID_CLASS_ARRAY_MAPPED: transferClass(pipe, input, output, number, pipeSchema, true, true, strategy); break;