Class XSSourceFormatter

java.lang.Object
com.io7m.xstructural.vanilla.internal.format.XSSourceFormatter

public final class XSSourceFormatter extends Object
A source formatter for xstructural XML documents.
  • Field Details

    • DEFAULT_WIDTH

      public static final int DEFAULT_WIDTH
      The default maximum line width.
      See Also:
  • Method Details

    • create

      public static void create(Path input, Path output, Path outputTemp) throws Exception
      Create and execute a formatter.
      Parameters:
      input - The input file
      output - The output file
      outputTemp - A temporary file for atomic writes
      Throws:
      Exception - On errors
    • create

      public static void create(Path input, Path output, Path outputTemp, int maxWidth) throws Exception
      Create and execute a formatter with an explicit line width.
      Parameters:
      input - The input file
      output - The output file
      outputTemp - A temporary file for atomic writes
      maxWidth - The maximum line width
      Throws:
      Exception - On errors