« Return to Thread: [Bug 653] New: Use Apache Commons IO to copy from InputStream to OutputStream

[Bug 653] New: Use Apache Commons IO to copy from InputStream to OutputStream

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View in Thread

http://helma.org/bugs/show_bug.cgi?id=653

           Summary: Use Apache Commons IO to copy from InputStream to
                    OutputStream
           Product: Helma
           Version: CVS trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Generic/Other
        AssignedTo: helma-dev@...
        ReportedBy: hannes@...


There are several places in Helma where bytes are copied from an input stream
to an output stream by manually allocating a byte array the size of bytes to be
copied. This is both stupid and dangerous, as we already have Apache Commons IO
bundled with Helma. All places where this happens should make use of the
org.apache.commons.io.IOUtils.copy() method.

http://commons.apache.org/io/api-release/org/apache/commons/io/IOUtils.html#copy(java.io.InputStream,%20java.io.Writer)


--
Configure bugmail: http://helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev

 « Return to Thread: [Bug 653] New: Use Apache Commons IO to copy from InputStream to OutputStream