[jira] [Created] (IO-330) IOUtils#oBufferedOutputStream/toBufferedWriter to conditionally wrap the output

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (IO-330) IOUtils#oBufferedOutputStream/toBufferedWriter to conditionally wrap the output

Gary D. Gregory (Jira)
Sebb created IO-330:
-----------------------

             Summary: IOUtils#oBufferedOutputStream/toBufferedWriter to conditionally wrap the output
                 Key: IO-330
                 URL: https://issues.apache.org/jira/browse/IO-330
             Project: Commons IO
          Issue Type: New Feature
         Environment: Might be worth providing output analogues of IOUtils#toBufferedReader().

i.e., if the OutputStream or Writer is not buffered, then wrap it in the corresponding Buffered... class.

Unfortunately, the input method name toBufferedInputStream is already in use, and does not perform the equivalent conversion of an InputStream.

The new methods could use a different prefix, e.g.

asBufferedOutputStream, asBufferedWriter.
Could then create the equivalent input methods and deprecate toBufferedReader in favour of asBufferedReader.
            Reporter: Sebb




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (IO-330) IOUtils#oBufferedOutputStream/toBufferedWriter to conditionally wrap the output

Gary D. Gregory (Jira)

     [ https://issues.apache.org/jira/browse/IO-330?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary D. Gregory updated IO-330:
-------------------------------

    Description:
Might be worth providing output analogues of IOUtils#toBufferedReader().

i.e., if the OutputStream or Writer is not buffered, then wrap it in the corresponding Buffered... class.

Unfortunately, the input method name toBufferedInputStream is already in use, and does not perform the equivalent conversion of an InputStream.

The new methods could use a different prefix, e.g.

asBufferedOutputStream, asBufferedWriter.
Could then create the equivalent input methods and deprecate toBufferedReader in favour of asBufferedReader.
    Environment:     (was: Might be worth providing output analogues of IOUtils#toBufferedReader().

i.e., if the OutputStream or Writer is not buffered, then wrap it in the corresponding Buffered... class.

Unfortunately, the input method name toBufferedInputStream is already in use, and does not perform the equivalent conversion of an InputStream.

The new methods could use a different prefix, e.g.

asBufferedOutputStream, asBufferedWriter.
Could then create the equivalent input methods and deprecate toBufferedReader in favour of asBufferedReader.)
   

> IOUtils#oBufferedOutputStream/toBufferedWriter to conditionally wrap the output
> -------------------------------------------------------------------------------
>
>                 Key: IO-330
>                 URL: https://issues.apache.org/jira/browse/IO-330
>             Project: Commons IO
>          Issue Type: New Feature
>            Reporter: Sebb
>
> Might be worth providing output analogues of IOUtils#toBufferedReader().
> i.e., if the OutputStream or Writer is not buffered, then wrap it in the corresponding Buffered... class.
> Unfortunately, the input method name toBufferedInputStream is already in use, and does not perform the equivalent conversion of an InputStream.
> The new methods could use a different prefix, e.g.
> asBufferedOutputStream, asBufferedWriter.
> Could then create the equivalent input methods and deprecate toBufferedReader in favour of asBufferedReader.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira