Class JSON.ConvertableOutput

  • All Implemented Interfaces:
    JSON.Output
    Enclosing class:
    JSON

    private final class JSON.ConvertableOutput
    extends java.lang.Object
    implements JSON.Output
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Appendable _buffer  
      (package private) char c  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ConvertableOutput​(java.lang.Appendable buffer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(java.lang.Object obj)  
      void add​(java.lang.String name, boolean value)  
      void add​(java.lang.String name, double value)  
      void add​(java.lang.String name, long value)  
      void add​(java.lang.String name, java.lang.Object value)  
      void addClass​(java.lang.Class type)  
      void complete()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • _buffer

        private final java.lang.Appendable _buffer
      • c

        char c
    • Constructor Detail

      • ConvertableOutput

        private ConvertableOutput​(java.lang.Appendable buffer)
    • Method Detail

      • complete

        public void complete()
      • add

        public void add​(java.lang.Object obj)
        Specified by:
        add in interface JSON.Output
      • addClass

        public void addClass​(java.lang.Class type)
        Specified by:
        addClass in interface JSON.Output
      • add

        public void add​(java.lang.String name,
                        java.lang.Object value)
        Specified by:
        add in interface JSON.Output
      • add

        public void add​(java.lang.String name,
                        double value)
        Specified by:
        add in interface JSON.Output
      • add

        public void add​(java.lang.String name,
                        long value)
        Specified by:
        add in interface JSON.Output
      • add

        public void add​(java.lang.String name,
                        boolean value)
        Specified by:
        add in interface JSON.Output