code: @Override
    public void close() throws IOException {
      if (inputStream != null) {
        inputStream.close();
        inputStream = null;
      }
  
      if (buffer != null) {
        buffer = null;
      }
    }
docs: Closes current metrics reader with the associated input stream.
  <p/>
  {@inheritDoc}