Skip to content

Feature request - BitInput#inputStream() #8

Open
@KrystilizeNevaDies

Description

@KrystilizeNevaDies

First off, thanks for the great library, it's very nice to use <3

Secondly, I'm requesting a simple stream provider method for BitInput, BitOutput, ByteInput e.t.c.
Maybe something along these lines:

BitInput input = ...;
InputStream stream = input.inputStream();

The Impl could be as simple as this I believe?

public class BitInputStream extends InputStream {

    private final BitInput input;

    public BitInputStream(final @NotNull BitInput input) {
        this.input = input;
    }

    @Override
    public int read() throws IOException {
        return input.readInt32();
    }
}

I'm not sure exactly what issues may arise, but it would be a nice feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions