diff -r 6d1fc2895273 -r ed9ec17aa67f java/alt2xml-in-properties/src/cz/frantovo/alt2xml/in/properties/Reader.java --- a/java/alt2xml-in-properties/src/cz/frantovo/alt2xml/in/properties/Reader.java Sat Sep 06 15:06:41 2014 +0200 +++ b/java/alt2xml-in-properties/src/cz/frantovo/alt2xml/in/properties/Reader.java Sat Sep 06 17:17:37 2014 +0200 @@ -109,11 +109,11 @@ contentHandler.startDocument(); contentHandler.startElement(null, null, "properties", null); - outputLineBreak(); + contentHandler.lineBreak(); } private void outputProperty(String key, String value) throws SAXException { - outputIndentation(); + contentHandler.indentation(1); AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute(null, "name", "name", "xs:string", key); @@ -122,7 +122,7 @@ contentHandler.characters(value.toCharArray(), 0, value.length()); contentHandler.endElement(null, null, "property"); - outputLineBreak(); + contentHandler.lineBreak(); } private void outputProperties(Properties loadedData) throws SAXException { @@ -133,21 +133,9 @@ } } - private void outputIndentation() throws SAXException { - outputText("\t"); - } - - private void outputLineBreak() throws SAXException { - outputText("\n"); - } - - private void outputText(String text) throws SAXException { - contentHandler.characters(text.toCharArray(), 0, text.length()); - } - private void outputEnd() throws SAXException { contentHandler.endElement(null, null, "properties"); - outputLineBreak(); + contentHandler.lineBreak(); contentHandler.endDocument(); } }