code: @Override
      public void close() throws IOException {
          if (isClosed()) {
              return;
          }
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
              Tr.debug(tc, "Closing stream: hc: " + this.hashCode() + " details: " + this);
          }
          this.closed = true;
          this.ignoreFlush = false;
          try {
              flushBuffers();
          } finally {
              // must release the buffers even if the flush fails
              clear();
          }
      }
docs: /*
  @see java.io.OutputStream#close()