Fixed bug in ChunkyByteArray that was being manifested by parsing large UTF-16 files. The ChunkyByteArray holds character data for the readers. This data is stored in an array of chunks. No checks were in the code to resize the array of chunks when needed. Therefore, large files would expose this bug -- files larger than 64 * 16K.
Fixed bug in ChunkyByteArray that was being manifested by
parsing large UTF-16 files. The ChunkyByteArray holds
character data for the readers. This data is stored in an
array of chunks. No checks were in the code to resize the
array of chunks when needed. Therefore, large files would
expose this bug -- files larger than 64 * 16K.

REVISIT: So this brings up the question about whether we
need to hold onto *all* of the chunks in the byte array.
It may be possible to reuse only one chunk. This should
be looked at again after the upcoming release.


git-svn-id: 21df804813e9d3638e43477f308dd0be51e5f30f@315205 13f79535-47bb-0310-9956-ffa450edef68

jimma/xerces,ronsigal/xerces,ronsigal/xerces,ronsigal/xerces,RackerWilliams/xercesj,jimma/xerces,RackerWilliams/xercesj,jimma/xerces,RackerWilliams/xercesj