|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.mflow.util.IOUtil
| Constructor Summary | |
|---|---|
IOUtil()
|
|
| Method Summary | |
|---|---|
static void |
closeReader(java.io.Reader r)
Closes the specified reader, ignoring any exceptions thrown |
static void |
closeStream(java.io.InputStream is)
Closes the specified stream, ignoring any exceptions thrown |
static void |
closeStream(java.io.OutputStream os)
Closes the specified stream, ignoring any exceptions thrown |
static byte[] |
readStreamToByteArray(java.io.InputStream input)
Read all of the data from a stream, returning the contents as a byte array. |
static java.lang.String |
readStreamToString(java.io.InputStream input)
Read all of the data from a stream, returning the contents as a String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IOUtil()
| Method Detail |
|---|
public static void closeStream(java.io.InputStream is)
is - the stream to closepublic static void closeStream(java.io.OutputStream os)
os - the stream to closepublic static void closeReader(java.io.Reader r)
r - the reader to close
public static final java.lang.String readStreamToString(java.io.InputStream input)
throws java.io.IOException
String. Note that this method is not unicode-aware.
input - The stream to read from.
String.
java.io.IOException - If an error occurred while reading from the stream.
public static final byte[] readStreamToByteArray(java.io.InputStream input)
throws java.io.IOException
byte array.
input - The stream to read from.
byte array.
java.io.IOException - If an error occurred while reading from the stream.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||