Module swim.json
Package swim.json

Class JsonWriter<I,​V>

  • Direct Known Subclasses:
    JsonStructureWriter

    public abstract class JsonWriter<I,​V>
    extends Object
    Factory for constructing JSON writers.
    • Constructor Detail

      • JsonWriter

        public JsonWriter()
    • Method Detail

      • items

        public abstract Iterator<I> items​(I item)
      • item

        public abstract I item​(V value)
      • key

        public abstract V key​(I item)
      • value

        public abstract V value​(I item)
      • writeItem

        public abstract Writer<?,​?> writeItem​(Output<?> output,
                                                    I item)
      • writeField

        public abstract Writer<?,​?> writeField​(Output<?> output,
                                                     I item,
                                                     int index)
      • writeValue

        public abstract Writer<?,​?> writeValue​(Output<?> output,
                                                     I item,
                                                     int index)
      • writeValue

        public abstract Writer<?,​?> writeValue​(Output<?> output,
                                                     V value)
      • writeField

        public Writer<?,​?> writeField​(Output<?> output,
                                            V key,
                                            V value)
      • writeArray

        public Writer<?,​?> writeArray​(Output<?> output,
                                            I item)
      • writeObject

        public Writer<?,​?> writeObject​(Output<?> output,
                                             I item)
      • writeNum

        public Writer<?,​?> writeNum​(Output<?> output,
                                          int value)
      • writeNum

        public Writer<?,​?> writeNum​(Output<?> output,
                                          long value)
      • writeNum

        public Writer<?,​?> writeNum​(Output<?> output,
                                          float value)
      • writeNum

        public Writer<?,​?> writeNum​(Output<?> output,
                                          double value)
      • writeUint32

        public Writer<?,​?> writeUint32​(Output<?> output,
                                             int value)
      • writeUint64

        public Writer<?,​?> writeUint64​(Output<?> output,
                                             long value)
      • writeBool

        public Writer<?,​?> writeBool​(Output<?> output,
                                           boolean value)
      • writeNull

        public Writer<?,​?> writeNull​(Output<?> output)
      • writeUndefined

        public Writer<?,​?> writeUndefined​(Output<?> output)