Skip to content

Add support for non-flushing OutputStream to StreamUtils #36382

Closed

Description

@jhoeller

StreamUtils comes with nonClosing decoration methods already, based on an internal NonClosingOutputStream class which suppresses close() calls. We can easily add support for a nonFlushing method, applying an internal subclass of NonClosingOutputStream that also suppresses flush() calls. Also, we can detect whether a given OutputStream is non-closing/flushing already and avoid unnecessary decoration in that case.

Activity

  1. added this to the 7.0.6 milestone on Feb 24, 2026
  2. self-assigned this
    on Feb 24, 2026
  3. added
    in: coreIssues in core modules (aop, beans, core, context, expression)
    on Feb 24, 2026
  4. added a commit that references this issue on Apr 19, 2026
    ab8cb8d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions