com.ochafik.io
Class ReadText

java.lang.Object
  extended by com.ochafik.io.ReadText

public class ReadText
extends Object


Constructor Summary
ReadText()
           
 
Method Summary
static List<String> readLines(InputStream in)
           
static List<String> readLines(Reader r)
           
static List<String> readLines(String s)
           
static List<String> readLines(URL u)
           
static String[] readLinesArray(String s)
           
static Properties readProperties(File file, boolean failIfNotExists)
           
static String readText(File f)
           
static String readText(InputStream in)
           
static String readText(Reader in)
           
static String readText(URL u)
           
static void writeProperties(Properties properties, File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadText

public ReadText()
Method Detail

readText

public static final String readText(Reader in)
                             throws IOException
Throws:
IOException

readText

public static final String readText(File f)

writeProperties

public static final void writeProperties(Properties properties,
                                         File file)
                                  throws IOException
Throws:
IOException

readProperties

public static final Properties readProperties(File file,
                                              boolean failIfNotExists)
                                       throws IOException
Throws:
IOException

readText

public static final String readText(URL u)
                             throws IOException
Throws:
IOException

readText

public static final String readText(InputStream in)
                             throws IOException
Throws:
IOException

readLines

public static final List<String> readLines(String s)
                                    throws IOException
Throws:
IOException

readLines

public static final List<String> readLines(URL u)
                                    throws IOException
Throws:
IOException

readLines

public static final List<String> readLines(InputStream in)
                                    throws IOException
Throws:
IOException

readLines

public static final List<String> readLines(Reader r)
                                    throws IOException
Throws:
IOException

readLinesArray

public static final String[] readLinesArray(String s)
                                     throws IOException
Throws:
IOException


Copyright © 2009. All Rights Reserved.