Fixing a potential IndexOutOfBoundsException. Need to be careful when the remaining space left in the buffer is less than XMLEntityManager.DEFAULT_XMLDECL_BUFFER_SIZE. Thanks to David Cargill for pointing this problem out.
Fixing a potential IndexOutOfBoundsException. Need to be careful when the remaining
space left in the buffer is less than XMLEntityManager.DEFAULT_XMLDECL_BUFFER_SIZE.
Thanks to David Cargill for pointing this problem out.

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

jimma/xerces,ronsigal/xerces,ronsigal/xerces,jimma/xerces,jimma/xerces,ronsigal/xerces