Package org.codehaus.jackson.node

Examples of org.codehaus.jackson.node.LongNode


  /** Read Json data from Avro data. */
  public static JsonNode read(Decoder in) throws IOException {
    switch (JsonType.values()[in.readIndex()]) {
    case LONG:
      return new LongNode(in.readLong());
    case DOUBLE:
      return new DoubleNode(in.readDouble());
    case STRING:
      return new TextNode(in.readString());
    case BOOLEAN:
View Full Code Here


            }
            return array;
        } else if (obj instanceof Integer) {
            return new IntNode((Integer) obj);
        } else if (obj instanceof Long) {
            return new LongNode((Long) obj);
        } else if (obj instanceof Double) {
            return new DoubleNode((Double) obj);
        } else if (obj instanceof Float) {
            return new DoubleNode((Float) obj);
        } else if (obj instanceof Boolean) {
View Full Code Here

TOP

Related Classes of org.codehaus.jackson.node.LongNode

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.