Package org.jboss.resteasy.util
Class ReadFromStream
java.lang.Object
org.jboss.resteasy.util.ReadFromStream
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
readFromStream
(int bufferSize, InputStream entityStream) Stuff the contents of a InputStream into a byte buffer.
-
Constructor Details
-
ReadFromStream
public ReadFromStream()
-
-
Method Details
-
readFromStream
Stuff 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
-