Class MReindent

java.lang.Object
com.io7m.montarre.xml.MReindent

public final class MReindent extends Object
Functions to indent XML.
  • Method Details

    • indent

      public static void indent(byte[] data, OutputStream output) throws IOException
      Indent the given XML to the given output.
      Parameters:
      data - The XML
      output - The output stream
      Throws:
      IOException - On errors
    • indent

      public static String indent(byte[] data) throws IOException
      Indent the given XML.
      Parameters:
      data - The XML
      Returns:
      The indented text
      Throws:
      IOException - On errors