Skip to content
This repository was archived by the owner on Dec 2, 2025. It is now read-only.
This repository was archived by the owner on Dec 2, 2025. It is now read-only.

LZ4FrameInputStream should read InputStream lazily #146

@bjmi

Description

@bjmi

Creating a new LZ4FrameInputStream instance already reads the underlying InputStream by calling nextFrameInfo().
This call should be deferred until an actual read(...) is performed i.e. separate instance creation and utilization.

Advantages

  • If input is never read or used no resources or handles would be allocated.
  • My use-case: underlying InputStream is not ready when creating LZ4FrameInputStream but actually is when used.

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