Class XSFormat

java.lang.Object
com.io7m.xstructural.vanilla.XSFormat

public final class XSFormat extends Object
Functions to format structural XML documents.
  • Method Details

    • format

      public static void format(Path input, Path output, Path outputTemp, int maxWidth) throws Exception
      Format the input document, writing it to the temporary output document and then atomically renaming the temporary output to the actual output.
      Parameters:
      input - The input file
      output - The output file
      outputTemp - The temporary output file
      maxWidth - The maximum line width
      Throws:
      Exception - On errors