Package org.jtester.json.encoder.object

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


    // Map类型
    if (Map.class.isAssignableFrom(clazz)) {
      return new MapEncoder(clazz);
    }
    // 普通对象
    return new PoJoEncoder(clazz);
  }
View Full Code Here


  }

  @Override
  protected JSONEncoder getEncoderByItem(Object item) {
    if (item == null) {
      return new PoJoEncoder(Object.class);
    }
    Class type = item.getClass();
    return JSONEncoder.get(type);
  }
View Full Code Here

TOP

Related Classes of org.jtester.json.encoder.object.PoJoEncoder

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.