Class JSON.Literal

  • All Implemented Interfaces:
    Enclosing class:

    public static class JSON.Literal
    extends java.lang.Object
    implements JSON.Generator

    A Literal JSON generator.

    A utility instance of JSON.Generator that holds a pre-generated string on JSON text.

    • Constructor Summary

      Constructor Description
      Literal​(java.lang.String json)
      Constructs a literal JSON instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addJSON​(java.lang.Appendable buffer)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Literal

        public Literal​(java.lang.String json)
        Constructs a literal JSON instance.
        json - a literal JSON string
    • Method Detail

      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • addJSON

        public void addJSON​(java.lang.Appendable buffer)
        Specified by:
        addJSON in interface JSON.Generator