Class JsonObjectGenerator

  • All Implemented Interfaces:
    jakarta.json.stream.JsonGenerator, Closeable, Flushable, AutoCloseable

    public class JsonObjectGenerator
    extends Object
    implements jakarta.json.stream.JsonGenerator
    • Field Detail

      • factory

        private final jakarta.json.JsonBuilderFactory factory
      • objectBuilder

        private jakarta.json.JsonObjectBuilder objectBuilder
      • arrayBuilder

        private jakarta.json.JsonArrayBuilder arrayBuilder
    • Constructor Detail

      • JsonObjectGenerator

        public JsonObjectGenerator​(jakarta.json.JsonBuilderFactory factory)
    • Method Detail

      • writeStartObject

        public jakarta.json.stream.JsonGenerator writeStartObject()
        Specified by:
        writeStartObject in interface jakarta.json.stream.JsonGenerator
      • writeStartObject

        public jakarta.json.stream.JsonGenerator writeStartObject​(String name)
        Specified by:
        writeStartObject in interface jakarta.json.stream.JsonGenerator
      • writeStartArray

        public jakarta.json.stream.JsonGenerator writeStartArray()
        Specified by:
        writeStartArray in interface jakarta.json.stream.JsonGenerator
      • writeStartArray

        public jakarta.json.stream.JsonGenerator writeStartArray​(String name)
        Specified by:
        writeStartArray in interface jakarta.json.stream.JsonGenerator
      • writeKey

        public jakarta.json.stream.JsonGenerator writeKey​(String name)
        Specified by:
        writeKey in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(String name,
                                                       jakarta.json.JsonValue value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(String name,
                                                       String value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(String name,
                                                       BigInteger value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(String name,
                                                       BigDecimal value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(String name,
                                                       int value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(String name,
                                                       long value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(String name,
                                                       double value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(String name,
                                                       boolean value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • writeNull

        public jakarta.json.stream.JsonGenerator writeNull​(String name)
        Specified by:
        writeNull in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(jakarta.json.JsonValue value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(String value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(BigDecimal value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(BigInteger value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(int value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(long value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(double value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(boolean value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • writeNull

        public jakarta.json.stream.JsonGenerator writeNull()
        Specified by:
        writeNull in interface jakarta.json.stream.JsonGenerator
      • writeEnd

        public jakarta.json.stream.JsonGenerator writeEnd()
        Specified by:
        writeEnd in interface jakarta.json.stream.JsonGenerator
      • flush

        public void flush()
        Specified by:
        flush in interface Flushable
        Specified by:
        flush in interface jakarta.json.stream.JsonGenerator
      • close

        public void close()
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
        Specified by:
        close in interface jakarta.json.stream.JsonGenerator
      • getResult

        public jakarta.json.JsonValue getResult()