com.google.gson
Class JsonLiteral

java.lang.Object
  extended by com.google.gson.JsonElement
      extended by com.google.gson.JsonLiteral

public final class JsonLiteral
extends com.google.gson.JsonElement

The gson project use package to control access to their objects. However, this prevents us from doing valid work, like controling the json emitted on a per-object basis. This is here to afford us to do this.

Author:
Adrian Cole
See Also:

Constructor Summary
JsonLiteral(CharSequence literal)
           
 
Method Summary
protected  void toString(Appendable sb, com.google.gson.Escaper escaper)
           
 
Methods inherited from class com.google.gson.JsonElement
getAsBigDecimal, getAsBigInteger, getAsBoolean, getAsByte, getAsCharacter, getAsDouble, getAsFloat, getAsInt, getAsJsonArray, getAsJsonNull, getAsJsonObject, getAsJsonPrimitive, getAsLong, getAsNumber, getAsShort, getAsString, isJsonArray, isJsonNull, isJsonObject, isJsonPrimitive, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JsonLiteral

public JsonLiteral(CharSequence literal)
Method Detail

toString

protected void toString(Appendable sb,
                        com.google.gson.Escaper escaper)
                 throws IOException
Specified by:
toString in class com.google.gson.JsonElement
Throws:
IOException


Copyright © 2009-2011 jclouds. All Rights Reserved.