docs: @Override
      public void close() {
          // Override in subclasses, and call super.close()
          if (inputStream != null) {
              try {
                  if (inputStream instanceof InputStreamResourceCloser) {
                      ((InputStreamResourceCloser) inputStream).closeInputStream();
                  } else {
                      inputStream.close();
                  }
              } catch (final IOException e) {
                  // Ignore
              }
              inputStream = null;
          }
      }