io.protostuff.Output.writeObject()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(149)

本文整理了Java中io.protostuff.Output.writeObject()方法的一些代码示例,展示了Output.writeObject()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Output.writeObject()方法的具体详情如下:
包路径:io.protostuff.Output
类名称:Output
方法名:writeObject

Output.writeObject介绍

[英]Writes an object(using its schema) field.
[中]写入对象(使用其架构)字段。

代码示例

代码示例来源:origin: protostuff/protostuff

@Override
  protected void vTransfer(Pipe pipe, Input input, Output output,
      int number, boolean repeated) throws IOException
  {
    output.writeObject(number, pipe, valuePipeSchema, repeated);
  }
};

代码示例来源:origin: protostuff/protostuff

@Override
protected void kTo(Output output, int fieldNumber, Object key,
    boolean repeated) throws IOException
{
  output.writeObject(fieldNumber, key, keySchema, repeated);
}

代码示例来源:origin: protostuff/protostuff

@Override
protected void vTo(Output output, int fieldNumber, Object val,
    boolean repeated) throws IOException
{
  output.writeObject(fieldNumber, val, valueSchema, repeated);
}

代码示例来源:origin: protostuff/protostuff

@Override
protected void transfer(Pipe pipe, Input input, Output output,
    boolean repeated) throws IOException
{
  output.writeObject(number, pipe, schema.pipeSchema, repeated);
}

代码示例来源:origin: protostuff/protostuff

@Override
protected void transfer(Pipe pipe, Input input, Output output,
    boolean repeated) throws IOException
{
  output.writeObject(number, pipe, schema.pipeSchema, repeated);
}

代码示例来源:origin: protostuff/protostuff

@Override
  protected void vTransfer(Pipe pipe, Input input, Output output,
      int number, boolean repeated) throws IOException
  {
    output.writeObject(number, pipe,
        strategy.POLYMORPHIC_POJO_ELEMENT_SCHEMA.pipeSchema,
        repeated);
  }
};

代码示例来源:origin: protostuff/protostuff

@Override
  protected void vTransfer(Pipe pipe, Input input, Output output,
      int number, boolean repeated) throws IOException
  {
    output.writeObject(number, pipe, valuePipeSchema, repeated);
  }
};

代码示例来源:origin: protostuff/protostuff

@Override
protected void transfer(Pipe pipe, Input input, Output output,
    boolean repeated) throws IOException
{
  output.writeObject(number, pipe, schema.pipeSchema, repeated);
}

代码示例来源:origin: protostuff/protostuff

@Override
  protected void transferValue(Pipe pipe, Input input, Output output,
      int number, boolean repeated) throws IOException
  {
    output.writeObject(number, pipe,
        strategy.POLYMORPHIC_POJO_ELEMENT_SCHEMA.pipeSchema,
        repeated);
  }
};

代码示例来源:origin: protostuff/protostuff

@Override
protected void writeValueTo(Output output, int fieldNumber,
    Object value, boolean repeated) throws IOException
{
  output.writeObject(fieldNumber, value, valueSchema, repeated);
}

代码示例来源:origin: protostuff/protostuff

@Override
  protected void transferValue(Pipe pipe, Input input, Output output,
      int number, boolean repeated) throws IOException
  {
    output.writeObject(number, pipe, valuePipeSchema, repeated);
  }
};

代码示例来源:origin: protostuff/protostuff

@Override
  public void writeTo(Output output, Entry<Object, Object> entry)
      throws IOException
  {
    if (entry.getKey() != null)
      output.writeObject(1, entry.getKey(), DYNAMIC_VALUE_SCHEMA,
          false);
    if (entry.getValue() != null)
      output.writeObject(2, entry.getValue(), DYNAMIC_VALUE_SCHEMA,
          false);
  }
};

代码示例来源:origin: protostuff/protostuff

@Override
protected void kTransfer(Pipe pipe, Input input, Output output,
    int number, boolean repeated) throws IOException
{
  output.writeObject(number, pipe, schemaK.getPipeSchema(),
      repeated);
}

代码示例来源:origin: protostuff/protostuff

@Override
protected void kTo(Output output, int fieldNumber, Object key,
    boolean repeated) throws IOException
{
  output.writeObject(fieldNumber, key, schemaK.getSchema(),
      repeated);
}

代码示例来源:origin: protostuff/protostuff

@Override
protected void kTransfer(Pipe pipe, Input input, Output output,
    int number, boolean repeated) throws IOException
{
  output.writeObject(number, pipe, schemaK.getPipeSchema(),
      repeated);
}

代码示例来源:origin: protostuff/protostuff

@Override
protected void transferValue(Pipe pipe, Input input, Output output, int number,
    boolean repeated) throws IOException
{
  if (vPipeSchema == null)
  {
    throw new RuntimeException("No pipe schema for value: " +
        vSchema.typeClass().getName());
  }
  output.writeObject(number, pipe, vPipeSchema, repeated);
}

代码示例来源:origin: protostuff/protostuff

@Override
protected void writeTo(Output output, T message) throws IOException
{
  final Collection<Enum<?>> existing = accessor.get(message);
  if (existing != null)
    output.writeObject(number, existing, schema, false);
}

代码示例来源:origin: protostuff/protostuff

@Override
protected void writeTo(Output output, T message) throws IOException
{
  final Collection<Object> existing = accessor.get(message);
  if (existing != null)
    output.writeObject(number, existing, schema, false);
}

代码示例来源:origin: protostuff/protostuff

@Override
protected void writeTo(Output output, T message) throws IOException
{
  final Collection<Object> existing = accessor.get(message);
  if (existing != null)
    output.writeObject(number, existing, schema, false);
}

代码示例来源:origin: protostuff/protostuff

@Override
protected void writeTo(Output output, T message) throws IOException
{
  final Collection<Object> existing = accessor.get(message);
  if (existing != null)
    output.writeObject(number, existing, schema, false);
}

相关文章