org.jconfig.handler
Class BaseXMLHandler

java.lang.Object
  extended byorg.jconfig.handler.AbstractHandler
      extended byorg.jconfig.handler.BaseXMLHandler
All Implemented Interfaces:
ConfigurationHandler, java.util.EventListener, FileListener
Direct Known Subclasses:
InputStreamHandler, XMLFileHandler

public abstract class BaseXMLHandler
extends AbstractHandler

This class is used internally to save a configuration to a file.

Author:
Andreas Mecky andreas.mecky@xcom.de, Terry Dye terry.dye@xcom.de

Constructor Summary
BaseXMLHandler()
           
 
Method Summary
 java.lang.String getEncodingType(java.lang.String str)
           
 void setEncoding(java.lang.String encoding)
           
protected  void store(java.io.File file, Configuration config)
          This method will save the current categories and their properties to a file
 
Methods inherited from class org.jconfig.handler.AbstractHandler
addFileListener, fileChanged, fireFireChangedEvent, getFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jconfig.handler.ConfigurationHandler
load, load, store
 

Constructor Detail

BaseXMLHandler

public BaseXMLHandler()
Method Detail

setEncoding

public void setEncoding(java.lang.String encoding)

store

protected void store(java.io.File file,
                     Configuration config)
              throws ConfigurationManagerException
This method will save the current categories and their properties to a file

Parameters:
file - the file that will be generated
Throws:
ConfigurationManagerException - Description of the Exception

getEncodingType

public java.lang.String getEncodingType(java.lang.String str)


Copyright © 2001-2005 Andreas Mecky, Terry Dye. All Rights Reserved.