Package 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 Description ReadFromStream() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]readFromStream(int bufferSize, InputStream entityStream)Stuff the contents of a InputStream into a byte buffer. 
 - 
 
- 
- 
Method Detail
- 
readFromStream
public static byte[] readFromStream(int bufferSize, InputStream entityStream) throws IOExceptionStuff the contents of a InputStream into a byte buffer. Reads until EOF (-1).- Parameters:
 bufferSize- buffer sizeentityStream- entity input stream- Returns:
 - bytes read
 - Throws:
 IOException- if I/O error occurred
 
 - 
 
 -