Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add StreamReadCapability for further format-based/format-agnostic handling improvements #619

Closed
cowtowncoder opened this issue May 21, 2020 · 0 comments
Milestone

Comments

@cowtowncoder
Copy link
Member

One common problem when trying to make "challenging" formats like XML or CSV work well with databinding is that of enabling some format-specific deviations: databind is format-agnostic and should not know details of format; but in some cases it would be really nice to have capability-based changes to handling. So far JsonParser has couple of such methods (requiresCustomCodec(), canParseAsync()), but adding more methods does not seem very scalable.

With 2.12 there is need for couple of new capabilities specifically for improved support of XML.
It would make sense to add an enum-based "feature" style accessor: let's call enum StreamReadCapability and add necessary support for accessing set of such features via JsonParser.getReadCapabilities().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant