Package org.apache.vinci.transport.util
Class StreamMaterializer
- java.lang.Object
-
- org.apache.vinci.transport.util.StreamMaterializer
-
public class StreamMaterializer extends java.lang.Object
Simple static adapter method for converting stream into byte[]
-
-
Field Summary
Fields Modifier and Type Field Description private static int
BUFFER_SIZE
-
Constructor Summary
Constructors Modifier Constructor Description private
StreamMaterializer()
Utility class not meant to be instantiated.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
materialize(java.io.InputStream input_stream)
Bring the entire contents of the provided stream into a memory-resident byte array.
-
-
-
Field Detail
-
BUFFER_SIZE
private static final int BUFFER_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
materialize
public static final byte[] materialize(java.io.InputStream input_stream) throws java.io.IOException
Bring the entire contents of the provided stream into a memory-resident byte array. Does NOT close the stream.- Parameters:
input_stream
- -- Returns:
- -
- Throws:
java.io.IOException
- -java.io.IOException
- thrown by the input stream.
-
-