code: @Override
      public void close(boolean forceRealClose) throws IOException
      {
          flush();
          mTextWriter = null;
          mAttrValueWriter = null;
  
          // Buffers to free?
          char[] buf = mOutputBuffer;
          if (buf != null) {
              mOutputBuffer = null;
              mConfig.freeFullCBuffer(buf);
          }
          // Plus may need to close the actual writer
          if (forceRealClose || mAutoCloseOutput) {
              /* 14-Nov-2008, TSa: To resolve [WSTX-163], need to have a way
               *   to force UTF8Writer to close the underlying stream...
               */
              if (mOut instanceof CompletelyCloseable) {
                  ((CompletelyCloseable)mOut).closeCompletely();
              } else {
                  mOut.close();
              }
          }
      }
docs: /*
  //////////////////////////////////////////////
  Low-level (pass-through) methods
  //////////////////////////////////////////////