Package com.ibm.wala.util.io
Class Streams
- java.lang.Object
-
- com.ibm.wala.util.io.Streams
-
public class Streams extends Object
utilities for IO streams
-
-
Constructor Summary
Constructors Constructor Description Streams()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
inputStream2ByteArray(InputStream in)
-
-
-
Method Detail
-
inputStream2ByteArray
public static byte[] inputStream2ByteArray(InputStream in) throws IllegalArgumentException, IOException
- Parameters:
in
-- Returns:
- byte[] holding the contents of the stream
- Throws:
IllegalArgumentException
- if in == nullIOException
-
-