com.filenet.wcm.apps.server.util.prefs
Class XMLUpdateUtil

java.lang.Object
  extended bycom.filenet.wcm.apps.server.util.prefs.XMLUpdateUtil

public class XMLUpdateUtil
extends java.lang.Object


Constructor Summary
XMLUpdateUtil()
           
 
Method Summary
static void copyFile(java.lang.String original, java.lang.String destination)
          Backs up the original XML file.
static void log(java.lang.Object message)
          Logs the passed in message to the system out
static void writeToXML(java.lang.String fileName, com.filenet.wcm.toolkit.server.util.prefs.WcmPrefsObject p)
          Writes the WcmPrefsObject to XML file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLUpdateUtil

public XMLUpdateUtil()
Method Detail

log

public static void log(java.lang.Object message)
Logs the passed in message to the system out

Parameters:
message - The message to out put to system out.

copyFile

public static void copyFile(java.lang.String original,
                            java.lang.String destination)
                     throws java.io.IOException
Backs up the original XML file.

Parameters:
original - The original file path.
destination - The destination file path.
Throws:
java.io.IOException

writeToXML

public static void writeToXML(java.lang.String fileName,
                              com.filenet.wcm.toolkit.server.util.prefs.WcmPrefsObject p)
                       throws java.io.IOException
Writes the WcmPrefsObject to XML file

Parameters:
fileName - The path the the XML file
p - The WcmPrefsObject object that holds the XML data.
Throws:
java.io.IOException


© Copyright IBM Corp. 2002, 2007. All Rights Reserved.