fr.opensagres.xdocreport.core.internal
Class IndentNumberPrettyPrinter
java.lang.Object
fr.opensagres.xdocreport.core.internal.IndentNumberPrettyPrinter
- All Implemented Interfaces:
- IXMLPrettyPrinter
public class IndentNumberPrettyPrinter
- extends Object
- implements IXMLPrettyPrinter
XML Pretty Printer implemented with "indent-number". This XML Pretty Printer implementation can crash with this error
:
java.lang.IllegalArgumentException: Not supported: indent-number
(see bug http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6519088)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final IXMLPrettyPrinter INSTANCE
IndentNumberPrettyPrinter
public IndentNumberPrettyPrinter()
prettyPrint
public String prettyPrint(String xml,
int indent)
throws Exception
- Description copied from interface:
IXMLPrettyPrinter
- Indent the given xml with the given indent number.
- Specified by:
prettyPrint
in interface IXMLPrettyPrinter
- Parameters:
xml
- XML to indentindent
- the indent number.
- Returns:
-
- Throws:
Exception
Copyright © 2013. All rights reserved.