Examples of MapEncoder


Examples of co.nstant.in.cbor.encoder.MapEncoder

    unsignedIntegerEncoder = new UnsignedIntegerEncoder(this, outputStream);
    negativeIntegerEncoder = new NegativeIntegerEncoder(this, outputStream);
    byteStringEncoder = new ByteStringEncoder(this, outputStream);
    unicodeStringEncoder = new UnicodeStringEncoder(this, outputStream);
    arrayEncoder = new ArrayEncoder(this, outputStream);
    mapEncoder = new MapEncoder(this, outputStream);
    tagEncoder = new TagEncoder(this, outputStream);
    specialEncoder = new SpecialEncoder(this, outputStream);
  }
View Full Code Here

Examples of co.nstant.in.cbor.encoder.MapEncoder

    unsignedIntegerEncoder = new UnsignedIntegerEncoder(this, outputStream);
    negativeIntegerEncoder = new NegativeIntegerEncoder(this, outputStream);
    byteStringEncoder = new ByteStringEncoder(this, outputStream);
    unicodeStringEncoder = new UnicodeStringEncoder(this, outputStream);
    arrayEncoder = new ArrayEncoder(this, outputStream);
    mapEncoder = new MapEncoder(this, outputStream);
    tagEncoder = new TagEncoder(this, outputStream);
    specialEncoder = new SpecialEncoder(this, outputStream);
    rationalNumberEncoder = new RationalNumberEncoder(this, outputStream);
  }
View Full Code Here

Examples of com.google.code.gaeom.impl.encoder.MapEncoder

        else if (Map.class.isAssignableFrom(clazz))
        {
          Type[] types = ((ParameterizedType) type).getActualTypeArguments();
          FieldEncoder keyEncoder = getFieldEncoder(propertyName + MapEncoder.cKeyPrefix, field, types[0]);
          FieldEncoder valueEncoder = getFieldEncoder(propertyName + MapEncoder.cValuePrefix, field, types[0]);
          return new MapEncoder(propertyName, clazz, keyEncoder, valueEncoder);
        }
        else if (Collection.class.isAssignableFrom(clazz))
        {
          Type[] types = ((ParameterizedType) type).getActualTypeArguments();
          FieldEncoder valueEncoder = getFieldEncoder(propertyName + CollectionEncoder.cContentsPrefix, field, types[0]);
View Full Code Here

Examples of org.jtester.json.encoder.object.MapEncoder

    if (Collection.class.isAssignableFrom(clazz)) {
      return new CollectionEncoder(clazz);
    }
    // Map类型
    if (Map.class.isAssignableFrom(clazz)) {
      return new MapEncoder(clazz);
    }
    // 普通对象
    return new PoJoEncoder(clazz);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.