Package org.jboss.shrinkwrap.api.asset
Class ByteArrayIOUtil
- java.lang.Object
-
- org.jboss.shrinkwrap.api.asset.ByteArrayIOUtil
-
class ByteArrayIOUtil extends java.lang.Object
Package private class that helps get byte array fromInputStream
. Needed by the common assets in api.- Version:
- $Revision: $
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.logging.Logger
log
-
Constructor Summary
Constructors Constructor Description ByteArrayIOUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static byte[]
asByteArray(java.io.InputStream in)
Obtains the contents of the specified stream as a byte array
-
-
-
Method Detail
-
asByteArray
static byte[] asByteArray(java.io.InputStream in) throws java.lang.IllegalArgumentException
Obtains the contents of the specified stream as a byte array- Parameters:
in
- InputStream- Returns:
- the byte[] for the given InputStream
- Throws:
java.lang.IllegalArgumentException
- If the stream was not specified
-
-