Package org.waveprotocol.wave.communication.json

Examples of org.waveprotocol.wave.communication.json.RawStringData.addString()


      case REGULAR:
        return gson.toJson(message.toGson(null, gson));
      case MULTISTAGE:
        RawStringData data = new RawStringData();
        JsonElement rootElement = message.toGson(data, gson);
        data.setBaseStringIndex(data.addString(gson.toJson(rootElement)));
        return data.serialize();
      default:
        throw new AssertionError("Unknown JsonStrategy: " + strategy);
    }
  }
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.