Class StreamMaterializer


  • public class StreamMaterializer
    extends Object
    Simple static adapter method for converting stream into byte[]
    • Method Detail

      • materialize

        public static final byte[] materialize​(InputStream input_stream)
                                        throws 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:
        IOException - -
        IOException - thrown by the input stream.