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:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
public class ConfigWriter
- extends ConfigContentHandler
Helper class to write configurations as XML to a PrintWriter.
- Author:
- Roman Stumm
|
Method Summary |
protected void |
initReverseMap()
|
void |
writeConfig(java.lang.Object config,
java.io.PrintWriter pw)
|
protected void |
writeNode(java.lang.Object node,
java.io.PrintWriter pw,
int indent,
java.lang.Object parentNode)
|
| 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(java.lang.Object config,
java.io.PrintWriter pw)
throws java.io.IOException,
org.xml.sax.SAXException
- Throws:
java.io.IOException
org.xml.sax.SAXException
writeNode
protected void writeNode(java.lang.Object node,
java.io.PrintWriter pw,
int indent,
java.lang.Object parentNode)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
Copyright © 2008-2012. All Rights Reserved.