Class DeltaEmitter

java.lang.Object
org.egothor.methodatlas.emit.DeltaEmitter

public final class DeltaEmitter extends Object
Formats and writes a MethodAtlas delta report to a PrintWriter.

Output format

The emitted text is designed to be both human-readable in a terminal and parseable by simple shell scripts (e.g. grep "^+" to list added methods). The format is:

 MethodAtlas delta report
   before: before.csv  (scanned: 2026-04-10T09:00:00Z · 45 methods · 5 security-relevant)
   after:  after.csv   (scanned: 2026-04-24T14:30:00Z · 47 methods · 7 security-relevant)

 + com.acme.auth.Oauth2FlowTest  test_authCode
 + com.acme.auth.Oauth2FlowTest  test_tokenRefresh
 - com.acme.auth.LegacyAuthTest  test_basicAuth
 ~ com.acme.crypto.AesGcmTest    roundTrip_encryptDecrypt  [source; security: false → true]

 2 added  ·  1 removed  ·  1 modified  ·  42 unchanged
 security-relevant: 5 → 7  (+2)
 
See Also:
  • Method Details

    • emit

      public static void emit(DeltaReport.DeltaResult result, PrintWriter out)
      Emits a full delta report to out.
      Parameters:
      result - the delta result to format
      out - writer that receives all output; flushed but not closed