|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.microemu.app.util.IOUtils
public class IOUtils
General IO stream manipulation utilities. Some functions are based on org.apache.commons.io
This class provides static utility methods for input/output operations.
| Constructor Summary | |
|---|---|
IOUtils()
|
|
| Method Summary | |
|---|---|
static void |
closeQuietly(java.io.InputStream input)
Unconditionally close an InputStream. |
static void |
closeQuietly(java.io.OutputStream output)
Unconditionally close an OutputStream. |
static void |
closeQuietly(java.io.Writer output)
Unconditionally close a Writer. |
static void |
copyFile(java.io.File src,
java.io.File dst)
|
static void |
copyToFile(java.io.InputStream is,
java.io.File dst)
|
static java.lang.String |
getCanonicalFileClassLoaderURL(java.io.File file)
|
static java.lang.String |
getCanonicalFileURL(java.io.File file)
Solution for JVM bug http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6351751 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IOUtils()
| Method Detail |
|---|
public static java.lang.String getCanonicalFileURL(java.io.File file)
public static java.lang.String getCanonicalFileClassLoaderURL(java.io.File file)
public static void copyFile(java.io.File src,
java.io.File dst)
throws java.io.IOException
java.io.IOException
public static void copyToFile(java.io.InputStream is,
java.io.File dst)
throws java.io.IOException
java.io.IOExceptionpublic static void closeQuietly(java.io.InputStream input)
InputStream.
Equivalent to InputStream.close(), except any exceptions will be ignored.
This is typically used in finally blocks.
input - the InputStream to close, may be null or already closedpublic static void closeQuietly(java.io.OutputStream output)
OutputStream.
Equivalent to OutputStream.close(), except any exceptions will be ignored.
This is typically used in finally blocks.
output - the OutputStream to close, may be null or already closedpublic static void closeQuietly(java.io.Writer output)
Writer.
Equivalent to Writer.close(), except any exceptions will be ignored.
This is typically used in finally blocks.
output - the Writer to close, may be null or already closed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||