|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.homeunix.thecave.moss.util.StreamFunctions
public class StreamFunctions
Provides some convenience methods for copying between streams.
| Constructor Summary | |
|---|---|
StreamFunctions()
|
|
| Method Summary | |
|---|---|
static void |
copyInputStreamToOutputStream(java.io.InputStream is,
java.io.OutputStream os)
Copy the contents of the given input stream to the given output stream. |
static byte[] |
getBytes(java.io.InputStream is)
Returns a byte array of the contents of the given input stream. |
static java.lang.String |
getString(java.io.InputStream is)
Returns a string representation of the bytes in the given input stream, in UTF8 encoding. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StreamFunctions()
| Method Detail |
|---|
public static void copyInputStreamToOutputStream(java.io.InputStream is,
java.io.OutputStream os)
throws java.io.IOException
is - os -
java.io.IOException
public static java.lang.String getString(java.io.InputStream is)
throws java.io.IOException
is -
java.io.IOException
public static byte[] getBytes(java.io.InputStream is)
throws java.io.IOException
is -
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||