code: @Override
      public void reset() {
          _out = null;
          _encoder = null;
          _elementStackSize = 0;
          _state = XMLEventListenerStates.UNINITIALIZED;
          _lineBreak = LineBreak.NONE;
          _lineBreakChars = _lineBreak._lineBreakChars;
          _indentation = DEFAULT_INDENTATION;
  
          // State has changed, check
          checkInvariants();
      }
docs: Resets this <code>XMLOutputter</code>. The <code>Writer</code> and the
  encoding will be set to <code>null</code>, the element stack will be
  cleared, the state will be set to {@link #UNINITIALIZED}, the line break
  will be set to {@link LineBreak#NONE} and the indentation will be set to
  {@link #DEFAULT_INDENTATION} (an empty string).