-
Notifications
You must be signed in to change notification settings - Fork 0
Adds support for writing binary Ion 1.1 data. #1
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
base: 2.18-ion-11
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -66,6 +66,13 @@ public enum Feature implements FormatFeature // since 2.12 | |
| * @since 2.12 | ||
| */ | ||
| USE_NATIVE_TYPE_ID(true), | ||
|
|
||
| /** | ||
| * Whether to use the Ion 1.1 encoding (true) or the Ion 1.0 encoding (false). Disabled by default. | ||
| * | ||
| * @since 2.18 // TODO change according to the minor version this lands in. | ||
| */ | ||
| ION_VERSION_1_1(false), | ||
|
Comment on lines
+69
to
+75
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it possible to set something up so that instead of it being
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's what I'd prefer too (see my comment in the PR description), but I haven't seen an example of that yet within Jackson. These enums implement a Jackson core interface so that they can be used in various places in that code, and so far I've only seen them set by booleans. I'll keep looking though. |
||
| ; | ||
|
|
||
| protected final boolean _defaultState; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm guessing the answer is "no", but does the
IonObjectMapperallow you to provide your ownIonWriterBuildereither when configuring the mapper or writing a value?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can achieve this in a few ways:
IonObjectMapper.writeValue.