com.counterclaim.openefm.util
Class IOUtils

java.lang.Object
  extended bycom.counterclaim.openefm.util.IOUtils

public class IOUtils
extends java.lang.Object

Here's a place for I/O convenience methods.

 

Constructor Summary
IOUtils()
           
 
Method Summary
static java.lang.String FileToString(java.lang.String fileName)
          This method takes a filename (must be a text file) and reads the entire contents into a single string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOUtils

public IOUtils()
Method Detail

FileToString

public static java.lang.String FileToString(java.lang.String fileName)
                                     throws java.io.IOException
This method takes a filename (must be a text file) and reads the entire contents into a single string.

Throws:
java.io.IOException
Parameters:
fileName - the relative or absolute path of the file
Returns:
the contents of the file as a string


Copyright © 2002 counterclaim.com. All Rights Reserved.