Package org.apache.vinci.transport.util
Class StreamMaterializer
java.lang.Object
org.apache.vinci.transport.util.StreamMaterializer
Simple static adapter method for converting stream into byte[]
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Utility class not meant to be instantiated. -
Method Summary
Modifier and TypeMethodDescriptionstatic final byte[]
materialize
(InputStream input_stream) Bring the entire contents of the provided stream into a memory-resident byte array.
-
Field Details
-
BUFFER_SIZE
private static final int BUFFER_SIZE- See Also:
-
-
Constructor Details
-
StreamMaterializer
private StreamMaterializer()Utility class not meant to be instantiated.
-
-
Method Details
-
materialize
Bring the entire contents of the provided stream into a memory-resident byte array. Does NOT close the stream.- Throws:
IOException
- thrown by the input stream.
-