org.apache.vinci.transport.util
Class StreamMaterializer

java.lang.Object
  extended by org.apache.vinci.transport.util.StreamMaterializer

public class StreamMaterializer
extends java.lang.Object

Simple static adapter method for converting stream into byte[]


Method Summary
static byte[] materialize(java.io.InputStream input_stream)
          Bring the entire contents of the provided stream into a memory-resident byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.

Throws:
java.io.IOException - thrown by the input stream.


Copyright © 2011. All Rights Reserved.