com.flexiblewebsolutions.io.util
Class FileUtils

java.lang.Object
  extended by com.flexiblewebsolutions.io.util.FileUtils

public class FileUtils
extends java.lang.Object

Utility methods for reading and writing files

Author:
Donavon Buss

Constructor Summary
FileUtils()
           
 
Method Summary
 java.lang.StringBuffer loadXMLFileToString(java.io.File pFile)
          Reads in xml from file, removes commented out text, and then loads result into a StringBuffer.
 void writeFile(java.io.File pFile, java.lang.StringBuffer pData)
          Write contents of a StringBuffer to file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtils

public FileUtils()
Method Detail

loadXMLFileToString

public java.lang.StringBuffer loadXMLFileToString(java.io.File pFile)
Reads in xml from file, removes commented out text, and then loads result into a StringBuffer.

Parameters:
pFile - XML file
Returns:
The XML Contents of the file

writeFile

public void writeFile(java.io.File pFile,
                      java.lang.StringBuffer pData)
Write contents of a StringBuffer to file.

Parameters:
pFile - - Name of file to be written
pData - - File data


Copyright © -2005 . All Rights Reserved.