public final class MinXHTMLReindent
extends java.lang.Object
| 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) |
Read the file at
path_input, indent it and write the output to
path_tmp, then atomically rename path_tmp to
path_output. |
public static void indent(java.nio.file.Path path_input,
java.nio.file.Path path_tmp,
java.nio.file.Path path_output)
throws javax.xml.transform.TransformerException,
java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.ClassNotFoundException
path_input, indent it and write the output to
path_tmp, then atomically rename path_tmp to
path_output.path_input - The input filepath_tmp - The temporary output filepath_output - The final output filejavax.xml.transform.TransformerException - On XML or I/O errorsjava.io.IOException - On XML or I/O errorsjavax.xml.parsers.ParserConfigurationException - On XML or I/O errorsorg.xml.sax.SAXException - On XML or I/O errorsjava.lang.InstantiationException - On XML or I/O errorsjava.lang.IllegalAccessException - On XML or I/O errorsjava.lang.ClassNotFoundException - On XML or I/O errorsCopyright © 2017 <code@io7m.com> http://io7m.com