com.nativelibs4java.util
Class IOUtils

java.lang.Object
  extended by com.nativelibs4java.util.IOUtils

public class IOUtils
extends Object

Author:
Olivier

Constructor Summary
IOUtils()
           
 
Method Summary
static String readText(File f)
           
static String readText(InputStream in)
           
static String readText(Reader in)
           
static String readText(URL url)
           
static String readTextClose(InputStream in)
           
static String readTextClose(Reader in)
           
static void readWrite(InputStream in, OutputStream out)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOUtils

public IOUtils()
Method Detail

readText

public static String readText(File f)
                       throws IOException
Throws:
IOException

readText

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

readText

public static String readText(URL url)
                       throws IOException
Throws:
IOException

readTextClose

public static String readTextClose(InputStream in)
                            throws IOException
Throws:
IOException

readTextClose

public static String readTextClose(Reader in)
                            throws IOException
Throws:
IOException

readText

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

readWrite

public static void readWrite(InputStream in,
                             OutputStream out)
                      throws IOException
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.