Package org.apache.mina.codec.delimited.ints

Examples of org.apache.mina.codec.delimited.ints.VarInt$Decoder


    public static <L extends GeneratedMessage> ProtobufEncoder<L> newInstance(Class<L> clazz) {
        return new ProtobufEncoder<L>(clazz);
    }

    public ProtobufEncoder(Class<INPUT> clazz) {
        super(new VarInt().getEncoder(), ProtobufMessageEncoder.newInstance(clazz));
    }
View Full Code Here


    return newInstance(clazz, ExtensionRegistryLite.getEmptyRegistry());
  }

  public ProtobufDecoder(Class<OUTPUT> clazz, ExtensionRegistryLite registry)
      throws NoSuchMethodException {
    super(new VarInt().getDecoder(), ProtobufMessageDecoder.newInstance(
        clazz, registry));
  }
View Full Code Here

    public static <L extends GeneratedMessage> ProtobufDynamicDecoder newInstance() throws NoSuchMethodException {
        return new ProtobufDynamicDecoder();
    }

    public ProtobufDynamicDecoder() throws NoSuchMethodException {
        super(new VarInt().getDecoder(), ProtobufDynamicMessageDecoder.newInstance());
    }
View Full Code Here

      throws NoSuchMethodException {
    return new ThriftDynamicDecoder();
  }

  public ThriftDynamicDecoder() throws NoSuchMethodException {
    super(new VarInt().getDecoder(), new ThriftDynamicMessageDecoder());
  }
View Full Code Here

     * Construct an Avro Decoder
     *
     * @param schema            Avro Schema to be used
     */
    public AvroDecoder(Schema schema) {
        super(new VarInt().getDecoder(), new AvroMessageDecoder<T>(schema));
    }
View Full Code Here

    /**
     * Intializes the Avro Encoder
     * Default Encoder are VarInt encoder for Size and {@link AvroEncoder} for Avro encoding
     */
    public AvroEncoder() {
        super(new VarInt().getEncoder(), new AvroMessageEncoder<T>());
    }
View Full Code Here

TOP

Related Classes of org.apache.mina.codec.delimited.ints.VarInt$Decoder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.