code: public final void reset(Writer out, XMLEncoder encoder) throws IllegalArgumentException, UnsupportedEncodingException {
  
          // Check arguments
          if (encoder == null) {
              throw new IllegalArgumentException("encoder == null");
          }
  
          reset(out);
  
          // Store the fields
          _encoder = encoder;
  
          // State has changed, check
          checkInvariants();
      }
docs: Resets this <code>XMLOutputter</code> and configures it for the
  specified output stream and encoder. This resets the state to {@link #BEFORE_XML_DECLARATION}
  and clears the stack of open elements.
  
  @param out     the output stream to write to, not <code>null</code>.
  @param encoder the encoder, not <code>null</code>.
  @throws IllegalArgumentException     if <code>out == null || encoder == null</code>.
  @throws UnsupportedEncodingException if the specified encoding is not supported.