public class ReadFromStream extends Object
Constructor and Description |
---|
ReadFromStream() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
readFromStream(int bufferSize,
InputStream entityStream)
Stuff the contents of a InputStream into a byte buffer.
|
public static byte[] readFromStream(int bufferSize, InputStream entityStream) throws IOException
bufferSize
- buffer sizeentityStream
- entity input streamIOException
- if I/O error occurredCopyright © 2020 JBoss by Red Hat. All rights reserved.