This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PrettyPrintHandler implements InvocationHandler { | |
private static Logger LOGGER = Logger.getLogger(PrettyPrintHandler.class.getName()); | |
private final XMLStreamWriter target; | |
private int depth = 0; | |
private final Map<Integer, Boolean> hasChildElement = new HashMap<Integer, Boolean>(); | |
private static final String INDENT_CHAR = " "; | |
private static final String LINEFEED_CHAR = "\n"; | |
public PrettyPrintHandler(XMLStreamWriter target) { |