code: public static Sample readSample(final InputStream inputStream) throws IOException {
          checkNotNull(inputStream);
          try (BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream))) {
              return readSample(reader);
          }
      }
docs: Read a sample from the specified input stream.
  
  @param inputStream input stream, must not be null
  @return a sample read from the specified input stream
  @throws IOException if an I/O error occurs