Skip to content

Add convenience InputStream implementations, to read from streamy byte buffer #19

@cowtowncoder

Description

@cowtowncoder

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions