Package org.jboss.shrinkwrap.api.asset
Class ByteArrayIOUtil
java.lang.Object
org.jboss.shrinkwrap.api.asset.ByteArrayIOUtil
Package private class that helps get byte array from
InputStream
. Needed by the common assets in api.- Version:
- $Revision: $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static byte[]
Obtains the contents of the specified stream as a byte array
-
Field Details
-
log
-
-
Constructor Details
-
ByteArrayIOUtil
ByteArrayIOUtil()
-
-
Method Details
-
asByteArray
Obtains the contents of the specified stream as a byte array- Parameters:
in
- InputStream- Returns:
- the byte[] for the given InputStream
- Throws:
IllegalArgumentException
- If the stream was not specified
-