Class ManifestWriter

java.lang.Object
com.marksayson.deletionchecker.manifest.ManifestWriter

public final class ManifestWriter extends Object
Renders a manifest to the JSON written to disk: the canonical form (keys ascending, no insignificant whitespace) with a trailing manifestChecksum field holding the SHA-256 of the canonical form without that field.

Build-time only.

  • Method Details

    • write

      public static String write(DatasetManifest manifest)
      Returns the on-disk JSON for manifest.
      Parameters:
      manifest - the manifest to write
      Returns:
      the JSON text, including the computed manifestChecksum