commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <>
Subject [jira] Updated: (IO-129) Add TeeInputStream
Date Sat, 13 Oct 2007 14:58:50 GMT


Niall Pemberton updated IO-129:

    Attachment: commons-io-TeeInputStream-autoclose.patch

Thanks Jukka, I have committed this.

The only comment I have is on the decision to not provide anything for closing the OutputStream.
Seems like it would be a useful feature to be able to configure this impl. to automatically
close the output stream at the end of the input - attaching a suggested patch for comments.

> Add TeeInputStream
> ------------------
>                 Key: IO-129
>                 URL:
>             Project: Commons IO
>          Issue Type: New Feature
>          Components: Streams/Writers
>            Reporter: Jukka Zitting
>            Priority: Minor
>             Fix For: 1.4
>         Attachments: commons-io-TeeInputStream-autoclose.patch, IO-129.patch
> There should be a TeeInputStream class that transparently writes all bytes read from
an input stream to a given output stream. Such a class could be used to easily record and
log various inputs like incoming network streams, etc. The class would also be nicely symmetric
with the existing TeeOutputStream class.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message