You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/06/02 20:58:00 UTC

[jira] [Work logged] (IO-732) Char equivalent of UnsynchronizedByteArrayOutputStream (and InputStream)

     [ https://issues.apache.org/jira/browse/IO-732?focusedWorklogId=605548&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-605548 ]

ASF GitHub Bot logged work on IO-732:
-------------------------------------

                Author: ASF GitHub Bot
            Created on: 02/Jun/21 20:57
            Start Date: 02/Jun/21 20:57
    Worklog Time Spent: 10m 
      Work Description: jochenw commented on pull request #235:
URL: https://github.com/apache/commons-io/pull/235#issuecomment-853377897


   I'd like to see an explanation for this statement:
   
   
   
           It is also a good alternative to java.io.StringWriter class.
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 605548)
    Time Spent: 0.5h  (was: 20m)

> Char equivalent of UnsynchronizedByteArrayOutputStream (and InputStream)
> ------------------------------------------------------------------------
>
>                 Key: IO-732
>                 URL: https://issues.apache.org/jira/browse/IO-732
>             Project: Commons IO
>          Issue Type: New Feature
>          Components: Streams/Writers
>    Affects Versions: 2.8.0
>            Reporter: PJ Fanning
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> I was thinking of writing this and submitting it but just want to see if people think it makes sense first.
> The idea is to take AbstractByteArrayOutputStream and to replace the byte[] with char[] (maybe called AbstractCharArrayWriter) and to create an UnsynchronizedCharArrayWriter that extends it. Could so something similar with UnsynchronizedByteArrayInputStream - to get an UnsynchronizedStringReader.
> The nice thing about AbstractByteArrayOutputStream is the way it avoids arraycopy. The existing commons-io StringBuilderWriter still has arraycopy under the hood (in the java.lang.StringBuilder).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)