com.ibm.tivoli.maximo.miniapps.treegrid

Class TGGsonStreamWriter

  • java.lang.Object
    • com.ibm.tivoli.maximo.miniapps.treegrid.TGGsonStreamWriter
  • All Implemented Interfaces:
    TGJsonWriter


    public class TGGsonStreamWriter
    extends java.lang.Object
    implements TGJsonWriter
    Simple FACADE over the Gson Streaming JsonWriter instance.
    • Constructor Detail

      • TGGsonStreamWriter

        public TGGsonStreamWriter(com.google.gson.stream.JsonWriter writer)
    • Method Detail

      • create

        public static TGGsonStreamWriter create(java.io.PrintWriter pw)
        Convenience method for creating a new instance of the writer fully configured for Gson using default settings and the supplied print writer for output.
        Parameters:
        pw -
        Returns:
      • name

        public TGJsonWriter name(java.lang.String name)
                          throws java.io.IOException
        Specified by:
        name in interface TGJsonWriter
        Throws:
        java.io.IOException
      • value

        public TGJsonWriter value(boolean value)
                           throws java.io.IOException
        Specified by:
        value in interface TGJsonWriter
        Throws:
        java.io.IOException
      • value

        public TGJsonWriter value(double value)
                           throws java.io.IOException
        Specified by:
        value in interface TGJsonWriter
        Throws:
        java.io.IOException
      • value

        public TGJsonWriter value(long value)
                           throws java.io.IOException
        Specified by:
        value in interface TGJsonWriter
        Throws:
        java.io.IOException
      • value

        public TGJsonWriter value(java.lang.Number value)
                           throws java.io.IOException
        Specified by:
        value in interface TGJsonWriter
        Throws:
        java.io.IOException
      • value

        public TGJsonWriter value(java.lang.String value)
                           throws java.io.IOException
        Specified by:
        value in interface TGJsonWriter
        Throws:
        java.io.IOException