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: 39602be06c88ea89c23a8a9fd3d1314146990de6@616012 13f79535-47bb-0310-9956-ffa450edef68

RackerWilliams/xercesj,RackerWilliams/xercesj,RackerWilliams/xercesj