com.bericotech.clavin.util
Class TextUtils

java.lang.Object
  extended by com.bericotech.clavin.util.TextUtils

public class TextUtils
extends Object

Various utility methods for processing text.


Constructor Summary
TextUtils()
           
 
Method Summary
static String fileToString(File file)
          Wrapper for calling Apache Commons IO toString(BufferedReader) on a File, essentially providing a File.toString() method for the contents of a text file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextUtils

public TextUtils()
Method Detail

fileToString

public static String fileToString(File file)
                           throws IOException
Wrapper for calling Apache Commons IO toString(BufferedReader) on a File, essentially providing a File.toString() method for the contents of a text file.

Parameters:
file - File to be string-ified
Returns:
String representing contents of file
Throws:
IOException


Copyright © 2013 Berico Technologies. All rights reserved.