Package io.dropwizard.util
Class ByteStreams
- java.lang.Object
-
- io.dropwizard.util.ByteStreams
-
public final class ByteStreams extends Object
- Since:
- 2.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcopy(InputStream in, OutputStream to)static byte[]toByteArray(InputStream in)
-
-
-
Method Detail
-
toByteArray
public static byte[] toByteArray(InputStream in) throws IOException
- Throws:
IOException
-
copy
public static void copy(InputStream in, OutputStream to) throws IOException
- Throws:
IOException
-
-