Package org.waveprotocol.wave.communication.json

Examples of org.waveprotocol.wave.communication.json.RawStringData


    // TODO(piotrkaleta): Do we need multistage strategy at all?
    switch (strategy) {
      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

Related Classes of org.waveprotocol.wave.communication.json.RawStringData

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.