aQute.lib.io
Class IO
java.lang.Object
aQute.lib.io.IO
public class IO
- extends Object
Method Summary |
static Throwable |
close(Closeable in)
|
static String |
collect(File a)
|
static String |
collect(File a,
String encoding)
|
static String |
collect(InputStream a)
|
static String |
collect(InputStream a,
String encoding)
|
static String |
collect(Reader a)
|
static String |
collect(URL a,
String encoding)
|
void |
copy(Collection<?> c,
OutputStream out)
|
static void |
copy(File a,
File b)
|
static void |
copy(File a,
OutputStream b)
|
static void |
copy(InputStream in,
ByteBuffer bb)
|
static void |
copy(InputStream in,
DataOutput out)
|
static void |
copy(InputStream a,
File b)
|
static void |
copy(InputStream in,
OutputStream out)
|
static void |
delete(File f)
|
static void |
drain(InputStream in)
|
static File |
getFile(File base,
String file)
|
static URL |
toURL(String s,
File base)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IO
public IO()
copy
public static void copy(InputStream in,
OutputStream out)
throws IOException
- Throws:
IOException
copy
public static void copy(InputStream in,
DataOutput out)
throws IOException
- Throws:
IOException
copy
public static void copy(InputStream in,
ByteBuffer bb)
throws IOException
- Throws:
IOException
copy
public static void copy(File a,
File b)
throws IOException
- Throws:
IOException
copy
public static void copy(InputStream a,
File b)
throws IOException
- Throws:
IOException
copy
public static void copy(File a,
OutputStream b)
throws IOException
- Throws:
IOException
collect
public static String collect(File a,
String encoding)
throws IOException
- Throws:
IOException
collect
public static String collect(URL a,
String encoding)
throws IOException
- Throws:
IOException
collect
public static String collect(File a)
throws IOException
- Throws:
IOException
collect
public static String collect(InputStream a,
String encoding)
throws IOException
- Throws:
IOException
collect
public static String collect(InputStream a)
throws IOException
- Throws:
IOException
collect
public static String collect(Reader a)
throws IOException
- Throws:
IOException
getFile
public static File getFile(File base,
String file)
delete
public static void delete(File f)
drain
public static void drain(InputStream in)
throws IOException
- Throws:
IOException
copy
public void copy(Collection<?> c,
OutputStream out)
close
public static Throwable close(Closeable in)
toURL
public static URL toURL(String s,
File base)
throws MalformedURLException
- Throws:
MalformedURLException
Copyright © 2012 aQute SARL. All Rights Reserved.