public class IO
extends java.lang.Object
Constructor and Description |
---|
IO() |
Modifier and Type | Method and Description |
---|---|
static java.io.IOException |
close(java.io.Closeable closeable) |
static void |
closeSilently(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 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.net.URL url) |
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)
Reads and closes the input stream
|
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.lang.String fileName) |
static java.lang.String |
slurp(java.net.URL url) |
static byte[] |
slurpBytes(java.io.File file) |
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 java.util.Properties |
writeProperties(java.io.File resource,
java.util.Properties properties) |
static java.util.Properties |
writeProperties(java.io.OutputStream outputStream,
java.util.Properties properties) |
static void |
writeString(java.io.File file,
java.lang.String string) |
static java.util.zip.ZipOutputStream |
zip(java.io.File file) |
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 writeProperties(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
in
- properties
- java.io.IOException
public static java.util.Properties writeProperties(java.io.OutputStream outputStream, java.util.Properties properties) throws java.io.IOException
outputStream
- properties
- 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 java.lang.String slurp(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public static byte[] slurpBytes(java.io.File file) 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.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 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.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 java.io.IOException close(java.io.Closeable closeable) 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 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 void closeSilently(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(byte[] content)
public static java.io.InputStream read(java.net.URL url) throws java.io.IOException
java.io.IOException