edu.uchsc.ccp.util.io
Class FileReadingUtil

java.lang.Object
  extended by edu.uchsc.ccp.util.io.FileReadingUtil

public class FileReadingUtil
extends Object


Constructor Summary
FileReadingUtil()
           
 
Method Summary
static void main(String[] args)
           
static String[] readFileLines(InputStream inputStream)
           
static String[] readFileLines(InputStream inputStream, String comment)
           
static String[] readFileLines(String infile)
          Reads in a text file and returns it as an array of Strings.
static String[] readFileLines(String infile, String comment)
           
static String toString(InputStream inputStream)
           
static String toString(String infile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileReadingUtil

public FileReadingUtil()
Method Detail

readFileLines

public static String[] readFileLines(String infile)
                              throws IOException
Reads in a text file and returns it as an array of Strings. Risky from a scale point of view.

Throws:
IOException

readFileLines

public static String[] readFileLines(String infile,
                                     String comment)
                              throws IOException
Throws:
IOException

readFileLines

public static String[] readFileLines(InputStream inputStream)
                              throws IOException
Throws:
IOException

readFileLines

public static String[] readFileLines(InputStream inputStream,
                                     String comment)
                              throws IOException
Throws:
IOException

toString

public static String toString(String infile)
                       throws IOException
Throws:
IOException

toString

public static String toString(InputStream inputStream)
                       throws IOException
Throws:
IOException

main

public static void main(String[] args)