Skip to content

Add new functional interface, BufferRecycler.Gettable to allow "bundling" instances with i/o classes #1193

@cowtowncoder

Description

@cowtowncoder

Looks like we need to add bit of coordination between jackson-databind ObjectMapper, ObjectReader, ObjectWriter, and matching streaming level readers/writers (JsonParser / JsonGenerator) so that they can share a single BufferRecycler. To untangle dependencies, let's introduce a new simple interface, Gettable` that can be implemented by input/output source/targets.

But initially we specifically need to retrofit just two:

  • SegmentedStringWriter (java.io.Writer)
  • ByteArrayBuilder (java.io.OutputStream)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions