com.agimatec.commons.config.sax
Class ConfigWriter
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.agimatec.commons.config.sax.ConfigContentHandler
com.agimatec.commons.config.sax.ConfigWriter
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler
public class ConfigWriter
- extends ConfigContentHandler
Helper class to write configurations as XML to a PrintWriter.
- Author:
- Roman Stumm
| Methods inherited from class com.agimatec.commons.config.sax.ConfigContentHandler |
acceptNode, addHandler, characters, endDocument, endElement, getConfig, getCurrentHandler, getCurrentNode, initElementMap, removeHandler, startDocument, startElement |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigWriter
public ConfigWriter()
initReverseMap
protected void initReverseMap()
writeConfig
public void writeConfig(Object config,
PrintWriter pw)
throws IOException,
SAXException
- Throws:
IOException
SAXException
writeNode
protected void writeNode(Object node,
PrintWriter pw,
int indent,
Object parentNode)
throws SAXException
- Throws:
SAXException
Copyright © 2008-2011. All Rights Reserved.