History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WW-380
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Patrick Lightbody
Reporter: Dick Zetterberg
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
WebWork

FastByteArrayOutputStream copies byte by byte

Created: 13/Nov/03 04:05 PM   Updated: 16/Nov/03 07:11 PM
Component/s: None
Affects Version/s: 1.3
Fix Version/s: 1.4, 2.0-beta2


 Description  « Hide
The FastByteArrayOutputStream copies byte by byte if the data does not fit in one buffer. The check uses a >= to compare but a > would be more correct. On Resing for example data often comes in chunks of 8192 bytes. The current FastByte stream will copy that byte by byte.
The code also has a FIXME comment saying that it should be changed to use arraycopy instead

 All   Comments   Change History      Sort Order:
Patrick Lightbody - [16/Nov/03 07:11 PM ]
fixed for 2.0 as well