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 convenience InputStream implementations, to read from streamy byte buffer #19

Open
cowtowncoder opened this issue Jun 29, 2013 · 0 comments

Comments

@cowtowncoder
Copy link
Owner

To improve interoperability, it'd be good to add InputStream implementations.
Since it is byte-oriented, it is only applicable to byte-based buffers; and probably only streamy ones.

One variation is that of what to do when all current content has been read: so most likely two impls should be provided:

  1. "Snapshot" variant which considers end of content to be end-of-input
  2. Blocking variant that blocks when it runs out of content, waking up if new content is added -- this works bit like a pipe.
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