Package io.avaje.jsonb.jackson
Class JacksonAdapter
java.lang.Object
io.avaje.jsonb.jackson.JacksonAdapter
- All Implemented Interfaces:
IOAdapter
Jackson Core implementation of IOAdapter.
-
Constructor Summary
ConstructorsConstructorDescriptionJacksonAdapter(boolean serializeNulls, boolean serializeEmpty, boolean failOnUnknown) Create with the given default configuration. -
Method Summary
Modifier and TypeMethodDescriptionReturn a JsonWriter for use for writing to json string.Return a JsonWriter to use for writing json to byte array.properties(String... names) Return PropertyNames given the names of properties.reader(byte[] json) Return the JsonReader given json content as bytes.reader(InputStream inputStream) Return the JsonReader given json string content.Return the JsonReader given json string content.Return the JsonReader given json string content.writer(OutputStream outputStream) Return the JsonWriter given the outputStream.Return the JsonWriter given writer to use.
-
Constructor Details
-
JacksonAdapter
Create with the given default configuration.
-
-
Method Details
-
properties
Description copied from interface:IOAdapterReturn PropertyNames given the names of properties.The PropertyNames can prepare the names for writing such as escaping quotes and encoding to bytes so that the names can be written more efficiently.
- Specified by:
propertiesin interfaceIOAdapter- See Also:
-
reader
Description copied from interface:IOAdapterReturn the JsonReader given json string content. -
reader
Description copied from interface:IOAdapterReturn the JsonReader given json content as bytes. -
reader
Description copied from interface:IOAdapterReturn the JsonReader given json string content. -
reader
Description copied from interface:IOAdapterReturn the JsonReader given json string content. -
writer
Description copied from interface:IOAdapterReturn the JsonWriter given writer to use. -
writer
Description copied from interface:IOAdapterReturn the JsonWriter given the outputStream. -
bufferedWriter
Description copied from interface:IOAdapterReturn a JsonWriter for use for writing to json string.- Specified by:
bufferedWriterin interfaceIOAdapter
-
bufferedWriterAsBytes
Description copied from interface:IOAdapterReturn a JsonWriter to use for writing json to byte array.- Specified by:
bufferedWriterAsBytesin interfaceIOAdapter
-