|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.metamodel.commons.lang.IoUtils
public final class IoUtils
| Method Summary | |
|---|---|
static void |
closeSafely(java.io.BufferedReader reader)
|
static void |
closeSafely(java.io.InputStream in)
|
static int |
copy(java.io.InputStream input,
java.io.OutputStream output)
Copy bytes from an InputStream to an OutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int copy(java.io.InputStream input,
java.io.OutputStream output)
throws java.io.IOException
InputStream to an OutputStream.
This method buffers the input internally, so there is no need to use a BufferedInputStream.
input - the InputStream to read fromoutput - the OutputStream to write to
java.lang.IllegalArgumentException - if the input or output is null
java.io.IOException - if an I/O error occurspublic static void closeSafely(java.io.InputStream in)
public static void closeSafely(java.io.BufferedReader reader)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||