Package io.github.toolfactory.jvm.util
Class Streams
java.lang.Object
io.github.toolfactory.jvm.util.Streams
public class Streams
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description Streams()
-
Method Summary
Modifier and Type Method Description static void
copy(java.io.InputStream input, java.io.OutputStream output)
static byte[]
toByteArray(java.io.InputStream inputStream)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Streams
public Streams()
-
-
Method Details
-
toByteArray
public static byte[] toByteArray(java.io.InputStream inputStream) throws java.io.IOException- Throws:
java.io.IOException
-
copy
public static void copy(java.io.InputStream input, java.io.OutputStream output) throws java.io.IOException- Throws:
java.io.IOException
-