Skip to content

IonHashWriterBuilder shouldn't require a delegate IonWriter #11

Description

@toddjonker

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions