예제 #1
0
 // Increases statck.
 private void increaseStack() {
   CharArray[] tmp = new CharArray[_elemStack.length * 2];
   javolution.context.LogContext.info(
       new CharArray("XMLStreamReaderImpl: CharArray stack increased to " + tmp.length));
   System.arraycopy(_elemStack, 0, tmp, 0, _elemStack.length);
   _elemStack = tmp;
 }
예제 #2
0
 // Increases internal data buffer capacity.
 private void increaseDataBuffer() {
   // Note: The character data at any nesting level is discarded
   //       only when moving to outer nesting level (due to coalescing).
   //       This accumulation may cause resize of the data buffer if
   //       numerous elements at the same nesting level are separated by
   //       spaces or indentation.
   char[] tmp = new char[_data.length * 2];
   javolution.context.LogContext.info(
       new CharArray("XMLStreamReaderImpl: Data buffer increased to " + tmp.length));
   System.arraycopy(_data, 0, tmp, 0, _data.length);
   _data = tmp;
 }