Class NodeLedger

java.lang.Object
space.subkek.nodeledger.NodeLedger

public final class NodeLedger extends Object
Entry point for NodeLedger document operations.
  • Method Details

    • open

      public static NodeLedgerDocument open(Path path) throws NodeLedgerException
      Opens a NODELEDGER document from a file.
      Parameters:
      path - file path.
      Returns:
      opened document.
      Throws:
      NodeLedgerException - when the file cannot be read or parsed.
    • create

      public static NodeLedgerDocument create()
      Creates an empty NODELEDGER document.
      Returns:
      empty document.
    • parser

      public static NodeLedgerParser parser()
      Creates a parser with built-in codecs registered.
      Returns:
      default parser.