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 'writeBinary(InputStream, int)' method in JsonGenerator #16

Closed
cowtowncoder opened this issue May 27, 2012 · 1 comment
Closed

add 'writeBinary(InputStream, int)' method in JsonGenerator #16

cowtowncoder opened this issue May 27, 2012 · 1 comment

Comments

@cowtowncoder
Copy link
Member

Current 'writeBinary()' method requires binary data to be passed as a byte array. This may not work well with larger payloads; so we should an alternative method where one can define source for binary data.
In addition to InputStream, it should be possible to indicate exact number of bytes to include; this because some formats (not JSON however!) require such information to be written before data, or used for initializing write. It should be possible to pass marker value -1 to indicate "not known": not all generators are required to support it, however.

@cowtowncoder
Copy link
Member Author

Implemented (also for smile backend)

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