Package com.io7m.minisite.core
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 voidindent(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 atpath_input, indent it and write the output topath_tmp, then atomically renamepath_tmptopath_output.
-
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.ExceptionDeprecated, for removal: This API element is subject to removal in a future version.Read the file atpath_input, indent it and write the output topath_tmp, then atomically renamepath_tmptopath_output.- Parameters:
path_input- The input filepath_tmp- The temporary output filepath_output- The final output file- Throws:
java.lang.Exception- On XML or I/O errors
-