org.jboss.resteasy.util

## Class ReadFromStream

- java.lang.Object
- - org.jboss.resteasy.util.ReadFromStream

-     public class ReadFromStream
      extends Object

  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ReadFromStream()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static byte[]` | `readFromStream(int bufferSize, 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,
                              InputStream entityStream)
                                       throws IOException

      Stuff the contents of a InputStream into a byte buffer. Reads until EOF (-1).
      Parameters:
        `bufferSize` -
        `entityStream` -
      Returns:
      Throws:
        `IOException`

Copyright © 2014. All Rights Reserved.