public class IO
extends java.lang.Object
Constructor and Description |
---|
IO() |
Modifier and Type | Method and Description |
---|---|
static void |
close(java.io.Closeable closeable) |
static void |
copy(java.io.File from,
java.io.OutputStream to) |
static void |
copy(java.io.InputStream from,
java.io.File to) |
static void |
copy(java.io.InputStream from,
java.io.File to,
boolean append) |
static void |
copy(java.io.InputStream from,
java.io.OutputStream to) |
static void |
copy(java.net.URL from,
java.io.OutputStream to) |
static boolean |
delete(java.io.File file) |
static java.io.InputStream |
read(java.io.File source) |
static java.io.InputStream |
read(java.net.URL source) |
static byte[] |
readBytes(java.io.File file) |
static byte[] |
readBytes(java.io.InputStream in) |
static byte[] |
readBytes(java.net.URL url) |
static java.lang.String |
readString(java.io.File file) |
static java.lang.String |
readString(java.net.URL url) |
static java.lang.String |
slurp(java.io.File file) |
static java.lang.String |
slurp(java.io.InputStream in) |
static java.lang.String |
slurp(java.lang.String fileName) |
static java.lang.String |
slurp(java.net.URL url) |
static java.util.zip.ZipInputStream |
unzip(java.io.File file) |
static java.io.OutputStream |
write(java.io.File destination) |
static java.io.OutputStream |
write(java.io.File destination,
boolean append) |
static void |
writeString(java.io.File file,
java.lang.String string) |
static java.util.zip.ZipOutputStream |
zip(java.io.File file) |
public static java.lang.String readString(java.net.URL url) throws java.io.IOException
java.io.IOException
public static java.lang.String readString(java.io.File file) throws java.io.IOException
java.io.IOException
public static java.lang.String slurp(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public static java.lang.String slurp(java.io.File file) throws java.io.IOException
java.io.IOException
public static byte[] readBytes(java.io.File file) throws java.io.IOException
java.io.IOException
public static java.lang.String slurp(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static byte[] readBytes(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static java.lang.String slurp(java.net.URL url) throws java.io.IOException
java.io.IOException
public static byte[] readBytes(java.net.URL url) throws java.io.IOException
java.io.IOException
public static void writeString(java.io.File file, java.lang.String string) throws java.io.IOException
java.io.IOException
public static void copy(java.io.File from, java.io.OutputStream to) throws java.io.IOException
java.io.IOException
public static void copy(java.net.URL from, java.io.OutputStream to) throws java.io.IOException
java.io.IOException
public static void copy(java.io.InputStream from, java.io.File to) throws java.io.IOException
java.io.IOException
public static void copy(java.io.InputStream from, java.io.File to, boolean append) throws java.io.IOException
java.io.IOException
public static void copy(java.io.InputStream from, java.io.OutputStream to) throws java.io.IOException
java.io.IOException
public static java.util.zip.ZipOutputStream zip(java.io.File file) throws java.io.IOException
java.io.IOException
public static java.util.zip.ZipInputStream unzip(java.io.File file) throws java.io.IOException
java.io.IOException
public static void close(java.io.Closeable closeable) throws java.io.IOException
java.io.IOException
public static boolean delete(java.io.File file)
public static java.io.OutputStream write(java.io.File destination) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public static java.io.OutputStream write(java.io.File destination, boolean append) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public static java.io.InputStream read(java.io.File source) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public static java.io.InputStream read(java.net.URL source) throws java.io.IOException
java.io.IOException