You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Jukka Zitting (JIRA)" <ji...@apache.org> on 2010/04/14 19:40:49 UTC
[jira] Commented: (IO-211) Pre- and post-processing support for
proxied streams
[ https://issues.apache.org/jira/browse/IO-211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12856981#action_12856981 ]
Jukka Zitting commented on IO-211:
----------------------------------
As Niall noted in IO-242, there's a corner case where the added code can throw a NullPointerException. I fixed this in revision 934041.
> Pre- and post-processing support for proxied streams
> ----------------------------------------------------
>
> Key: IO-211
> URL: https://issues.apache.org/jira/browse/IO-211
> Project: Commons IO
> Issue Type: New Feature
> Components: Streams/Writers
> Reporter: Jukka Zitting
> Assignee: Jukka Zitting
> Priority: Minor
> Fix For: 2.0
>
> Attachments: IO-211.patch
>
>
> In many cases a stream decorator needs to add custom pre- or post-processing functionality to all the read and write methods in decorated input and output streams. For example the CountingInputStream needs to override all three read() methods with similar code.
> It would be nice if the proxy stream classes provided simple hooks for adding such functionality.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira