code: public Nist decode(InputStream inputStream) {
          try (BufferedInputStream input = new BufferedInputStream(inputStream);
               ByteArrayOutputStream output = new ByteArrayOutputStream()) {
  
              byte[] data = new byte[16384];
              int nRead;
              while ((nRead = input.read(data, 0, data.length)) != -1) {
                  output.write(data, 0, nRead);
              }
              output.flush();
  
              return decode(output.toByteArray());
          } catch (IOException e) {
              throw new RuntimeException("unexpected error.", e);
          }
      }
docs: decodes the given NIST file with given <code>InputStream</code> and returns a <code>Nist</code> containing the decoded info.
  
  @param inputStream the NIST file input stream, not null
  @return a Nist instance containing decoded info, not null
  @see Nist