Class Mapper

    • Field Detail

      • mappings

        protected final Mappings mappings
      • readerFactory

        protected final jakarta.json.JsonReaderFactory readerFactory
      • generatorFactory

        protected final jakarta.json.stream.JsonGeneratorFactory generatorFactory
      • builderFactory

        protected final jakarta.json.JsonBuilderFactory builderFactory
      • provider

        protected final jakarta.json.spi.JsonProvider provider
      • charset

        protected final Charset charset
    • Constructor Detail

      • Mapper

        Mapper​(jakarta.json.JsonReaderFactory readerFactory,
               jakarta.json.stream.JsonGeneratorFactory generatorFactory,
               jakarta.json.JsonBuilderFactory builderFactory,
               jakarta.json.spi.JsonProvider provider,
               MapperConfig config,
               Collection<Closeable> closeables)
    • Method Detail

      • writeArray

        public <T> void writeArray​(T[] object,
                                   OutputStream stream)
      • writeArray

        public <T> void writeArray​(T[] object,
                                   Writer stream)
      • writeArray

        public <T> void writeArray​(Collection<T> object,
                                   Writer stream)
      • writeIterable

        public <T> void writeIterable​(Iterable<T> object,
                                      Writer stream)
      • toStructure

        public jakarta.json.JsonValue toStructure​(Object object)
      • writeObject

        public void writeObject​(Object object,
                                Writer stream)
      • writeObjectWithGenerator

        public void writeObjectWithGenerator​(Object object,
                                             jakarta.json.stream.JsonGenerator generator)
      • writeArrayAsString

        public String writeArrayAsString​(Collection<?> instance)
      • writeArrayAsString

        public <T> String writeArrayAsString​(T[] instance)
      • writeObjectAsString

        public String writeObjectAsString​(Object instance)
      • readObject

        public <T> T readObject​(jakarta.json.JsonValue value,
                                Type clazz)
      • readObject

        public <T> T readObject​(String string,
                                Type clazz)
      • readObject

        public <T> T readObject​(Reader stream,
                                Type clazz)
      • readObject

        public <T> T readObject​(jakarta.json.stream.JsonParser stream,
                                Type clazz)
      • readObject

        public <T> T readObject​(InputStream stream,
                                Type clazz)
      • readArray

        public <T> T[] readArray​(Reader stream,
                                 Class<T> clazz)
      • readTypedArray

        public <T> T readTypedArray​(InputStream stream,
                                    Class<?> elementType,
                                    Class<T> arrayType)
      • readTypedArray

        public <T> T readTypedArray​(Reader stream,
                                    Class<?> elementType,
                                    Class<T> arrayType)
      • readTypedArray

        public <T> T readTypedArray​(jakarta.json.stream.JsonParser parser,
                                    Class<?> elementType,
                                    Class<T> arrayType)
      • readJsonArray

        public jakarta.json.JsonArray readJsonArray​(Reader stream)
      • readJsonArray

        public jakarta.json.JsonArray readJsonArray​(jakarta.json.stream.JsonParser stream)
      • readArray

        public <T> T[] readArray​(InputStream stream,
                                 Class<T> clazz)
      • readJsonArray

        public jakarta.json.JsonArray readJsonArray​(InputStream stream)
      • mapArray

        private Object mapArray​(Class<?> clazz,
                                jakarta.json.JsonReader reader)
      • mapObject

        private <T> T mapObject​(Type clazz,
                                jakarta.json.JsonReader reader)
      • getBuilderFactory

        public jakarta.json.JsonBuilderFactory getBuilderFactory()
      • getProvider

        public jakarta.json.spi.JsonProvider getProvider()