Package com.ibm.wala.util.io
Class Streams
- java.lang.Object
-
- com.ibm.wala.util.io.Streams
-
public class Streams extends java.lang.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(java.io.InputStream in)
-
-
-
Method Detail
-
inputStream2ByteArray
public static byte[] inputStream2ByteArray(java.io.InputStream in) throws java.lang.IllegalArgumentException, java.io.IOException
- Parameters:
in
-- Returns:
- byte[] holding the contents of the stream
- Throws:
java.lang.IllegalArgumentException
- if in == nulljava.io.IOException
-
-