Class Patcher

java.lang.Object
eu.kartoffelquadrat.svgpatcher.Patcher
Direct Known Subclasses:
CssPatcher, DimensionPatcher, IdPatcher

public abstract class Patcher extends Object
Abstract base class for all patchers.
  • Field Details

    • svg

      protected Document svg
      The svg this patcher works on.
  • Constructor Details

    • Patcher

      public Patcher(Document svg)
      Abstract constructor invoked by all subclasses.
      Parameters:
      svg - the document to modify.
  • Method Details

    • execute

      public abstract Document execute() throws IOException
      Triggers single run execution of the given patcher implementation. Patchers may behave cause incremental changes when executed repeatedly.
      Returns:
      the modified svg document object
      Throws:
      IOException - if patching involves loading of external files which cannot be resolved.