aQute.lib.io
Class IO

java.lang.Object
  extended by aQute.lib.io.IO

public class IO
extends java.lang.Object


Constructor Summary
IO()
           
 
Method Summary
static java.lang.Throwable close(java.io.Closeable in)
           
static java.lang.String collect(java.io.File a)
           
static java.lang.String collect(java.io.File a, java.lang.String encoding)
           
static java.lang.String collect(java.io.InputStream a)
           
static java.lang.String collect(java.io.InputStream a, java.lang.String encoding)
           
static java.lang.String collect(java.io.Reader a)
           
static java.lang.String collect(java.net.URL a, java.lang.String encoding)
           
 void copy(java.util.Collection<?> c, java.io.OutputStream out)
           
static void copy(java.io.File a, java.io.File b)
           
static void copy(java.io.File a, java.io.OutputStream b)
           
static void copy(java.io.InputStream in, java.nio.ByteBuffer bb)
           
static void copy(java.io.InputStream in, java.io.DataOutput out)
           
static void copy(java.io.InputStream a, java.io.File b)
           
static void copy(java.io.InputStream in, java.io.OutputStream out)
           
static void delete(java.io.File f)
           
static void drain(java.io.InputStream in)
           
static java.io.File getFile(java.io.File base, java.lang.String file)
           
static java.net.URL toURL(java.lang.String s, java.io.File base)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IO

public IO()
Method Detail

copy

public static void copy(java.io.InputStream in,
                        java.io.OutputStream out)
                 throws java.io.IOException
Throws:
java.io.IOException

copy

public static void copy(java.io.InputStream in,
                        java.io.DataOutput out)
                 throws java.io.IOException
Throws:
java.io.IOException

copy

public static void copy(java.io.InputStream in,
                        java.nio.ByteBuffer bb)
                 throws java.io.IOException
Throws:
java.io.IOException

copy

public static void copy(java.io.File a,
                        java.io.File b)
                 throws java.io.IOException
Throws:
java.io.IOException

copy

public static void copy(java.io.InputStream a,
                        java.io.File b)
                 throws java.io.IOException
Throws:
java.io.IOException

copy

public static void copy(java.io.File a,
                        java.io.OutputStream b)
                 throws java.io.IOException
Throws:
java.io.IOException

collect

public static java.lang.String collect(java.io.File a,
                                       java.lang.String encoding)
                                throws java.io.IOException
Throws:
java.io.IOException

collect

public static java.lang.String collect(java.net.URL a,
                                       java.lang.String encoding)
                                throws java.io.IOException
Throws:
java.io.IOException

collect

public static java.lang.String collect(java.io.File a)
                                throws java.io.IOException
Throws:
java.io.IOException

collect

public static java.lang.String collect(java.io.InputStream a,
                                       java.lang.String encoding)
                                throws java.io.IOException
Throws:
java.io.IOException

collect

public static java.lang.String collect(java.io.InputStream a)
                                throws java.io.IOException
Throws:
java.io.IOException

collect

public static java.lang.String collect(java.io.Reader a)
                                throws java.io.IOException
Throws:
java.io.IOException

getFile

public static java.io.File getFile(java.io.File base,
                                   java.lang.String file)

delete

public static void delete(java.io.File f)

drain

public static void drain(java.io.InputStream in)
                  throws java.io.IOException
Throws:
java.io.IOException

copy

public void copy(java.util.Collection<?> c,
                 java.io.OutputStream out)

close

public static java.lang.Throwable close(java.io.Closeable in)

toURL

public static java.net.URL toURL(java.lang.String s,
                                 java.io.File base)
                          throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException