com.agimatec.commons.config.sax
Class ConfigWriter

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by com.agimatec.commons.config.sax.ConfigContentHandler
          extended by 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

Field Summary
 
Fields inherited from class com.agimatec.commons.config.sax.ConfigContentHandler
elementMap, myConfigManager
 
Constructor Summary
ConfigWriter()
           
 
Method Summary
protected  void initReverseMap()
           
 void writeConfig(Object config, PrintWriter pw)
           
protected  void writeNode(Object node, PrintWriter pw, int indent, 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
 

Constructor Detail

ConfigWriter

public ConfigWriter()
Method Detail

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-2012. All Rights Reserved.