Class ReadFromStream


  • public class ReadFromStream
    extends java.lang.Object
    Version:
    $Revision: 1 $
    • Constructor Summary

      Constructors 
      Constructor Description
      ReadFromStream()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] readFromStream​(int bufferSize, java.io.InputStream entityStream)
      Stuff the contents of a InputStream into a byte buffer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReadFromStream

        public ReadFromStream()
    • Method Detail

      • readFromStream

        public static byte[] readFromStream​(int bufferSize,
                                            java.io.InputStream entityStream)
                                     throws java.io.IOException
        Stuff the contents of a InputStream into a byte buffer. Reads until EOF (-1).
        Parameters:
        bufferSize -
        entityStream -
        Returns:
        Throws:
        java.io.IOException