org.jbind.util.other
Class Copy
java.lang.Object
org.jbind.util.other.Copy
- public class Copy
- extends java.lang.Object
Method Summary |
static java.lang.String |
convertToString(java.io.InputStream is)
|
static java.lang.String |
convertToString(java.io.Reader r)
|
static void |
copyStream(java.io.InputStream is,
java.io.OutputStream os)
|
static byte[] |
copyToByteArray(java.io.InputStream is)
Copies the content of a stream into a byte array. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
copyStream
public static void copyStream(java.io.InputStream is,
java.io.OutputStream os)
throws java.io.IOException
- Throws:
java.io.IOException
convertToString
public static java.lang.String convertToString(java.io.Reader r)
throws java.io.IOException
- Throws:
java.io.IOException
convertToString
public static java.lang.String convertToString(java.io.InputStream is)
throws java.io.IOException
- Throws:
java.io.IOException
copyToByteArray
public static byte[] copyToByteArray(java.io.InputStream is)
throws java.io.IOException
- Copies the content of a stream into a byte array.
- Throws:
java.io.IOException