Class MinXHTMLReindent

java.lang.Object
com.io7m.minisite.core.MinXHTMLReindent

@Deprecated(since="2.0.0",
            forRemoval=true)
public final class MinXHTMLReindent
extends java.lang.Object
Deprecated, for removal: This API element is subject to removal in a future version.
Reindenting tends to break XHTML. Do not do it.
Reindent XHTML files.
  • Method Summary

    Modifier and Type Method Description
    static void indent​(java.nio.file.Path path_input, java.nio.file.Path path_tmp, java.nio.file.Path path_output)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Read the file at path_input, indent it and write the output to path_tmp, then atomically rename path_tmp to path_output.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • indent

      public static void indent​(java.nio.file.Path path_input, java.nio.file.Path path_tmp, java.nio.file.Path path_output) throws java.lang.Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Read the file at path_input, indent it and write the output to path_tmp, then atomically rename path_tmp to path_output.
      Parameters:
      path_input - The input file
      path_tmp - The temporary output file
      path_output - The final output file
      Throws:
      java.lang.Exception - On XML or I/O errors