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(byte[] from,
java.io.File to) |
static void |
copy(byte[] from,
java.io.OutputStream to) |
static void |
copy(java.io.File from,
java.io.File to) |
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 void |
copyDirectory(java.io.File srcDir,
java.io.File destDir) |
static boolean |
delete(java.io.File file) |
static java.io.InputStream |
read(byte[] content) |
static java.io.InputStream |
read(java.io.File source) |
static java.io.InputStream |
read(java.lang.String content) |
static java.io.InputStream |
read(java.lang.String content,
java.lang.String encoding) |
static java.io.InputStream |
read(java.net.URL url) |
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 |
readFileAsString(java.net.URI uri) |
static java.util.Properties |
readProperties(java.io.File resource) |
static java.util.Properties |
readProperties(java.io.File resource,
java.util.Properties properties) |
static java.util.Properties |
readProperties(java.io.InputStream in,
java.util.Properties properties) |
static java.util.Properties |
readProperties(java.net.URL resource) |
static java.util.Properties |
readProperties(java.net.URL resource,
java.util.Properties properties) |
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.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 readFileAsString(java.net.URI uri) throws java.io.IOException
java.io.IOException
public static java.util.Properties readProperties(java.net.URL resource) throws java.io.IOException
java.io.IOException
public static java.util.Properties readProperties(java.net.URL resource, java.util.Properties properties) throws java.io.IOException
java.io.IOException
public static java.util.Properties readProperties(java.io.File resource) throws java.io.IOException
java.io.IOException
public static java.util.Properties readProperties(java.io.File resource, java.util.Properties properties) throws java.io.IOException
java.io.IOException
public static java.util.Properties readProperties(java.io.InputStream in, java.util.Properties properties) throws java.io.IOException
java.io.IOException
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 byte[] readBytes(java.io.File file) throws java.io.IOException
java.io.IOException
public static byte[] readBytes(java.net.URL url) 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.io.File file) 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 java.lang.String slurp(java.io.InputStream in) 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.File to) throws java.io.IOException
java.io.IOException
public static void copyDirectory(java.io.File srcDir, java.io.File destDir) 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 void copy(byte[] from, java.io.File to) throws java.io.IOException
java.io.IOException
public static void copy(byte[] 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)
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.lang.String content)
public static java.io.InputStream read(java.lang.String content, java.lang.String encoding) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public static java.io.InputStream read(byte[] content)
public static java.io.InputStream read(java.net.URL url) throws java.io.IOException
java.io.IOException