com.filenet.wcm.apps.server.util.prefs
Class XMLUpdateUtil
- java.lang.Object
com.filenet.wcm.apps.server.util.prefs.XMLUpdateUtil
- public class XMLUpdateUtil
- extends java.lang.Object
Constructor Summary
| Constructor and Description |
|---|
XMLUpdateUtil()
|
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
copyFile(java.lang.String original,java.lang.String destination)
Backs up the original XML file.
|
|
log(java.lang.Object message)
Logs the passed in message to the system out
|
|
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.IOExceptionwriteToXML
- 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