| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.equanda.util.io.StreamUtil
public final class StreamUtil
Utility code for handling streams.
| Method Summary | |
|---|---|
static void | 
copy(InputStream in,
     OutputStream out)
 | 
static String | 
slurp(InputStream stream)
Convert an inputstream to a string by reading the streams content.  | 
static String | 
slurp(InputStream stream,
      String encoding)
Convert an inputstream to a string by reading the streams content.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static String slurp(InputStream stream)
                    throws IOException
stream - stream to convert
IOException - oops
public static String slurp(InputStream stream,
                           String encoding)
                    throws IOException
stream - stream to convertencoding - character encoding to use for stream
IOException - oops
public static void copy(InputStream in,
                        OutputStream out)
                 throws IOException
IOException
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||