docs: private void reset() throws IOException {
          if (streamState == StreamStates.OPEN) {
              if (stream.markSupported()) {
                  stream.reset();
              } else {
                  // In case a inputStream (e.g., fileInputStream) doesn't support
                  // mark, throw a exception
                  throw new IOException("Input stream doesn't support mark");
              }
          }
      }