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

IonHashWriterBuilder shouldn't require a delegate IonWriter #11

Open
toddjonker opened this issue Oct 3, 2018 · 0 comments
Open

IonHashWriterBuilder shouldn't require a delegate IonWriter #11

toddjonker opened this issue Oct 3, 2018 · 0 comments

Comments

@toddjonker
Copy link

I have an alternate representation of some Ion data. Consider it a POJO for simplicity. I want to compute an Ion hash for the data, but I don't want to generate any serialized form of the data. I just want the digest at the end.

Today I'm forced to serialize the data into either text or binary, and then ignore the output, but that's a waste of resources. If there were a null-writer available, that might be useful. I cannot create my own, however, because it's a violation of the IonWriter contract to do so. (I'm going to ignore the fact that this library also violates that contract; that's a separate issue.)

Really I just want to not call IonHashWriterBuilder.withBuilder() and do everything else as normal.

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