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
- entityStream
- IOException
Copyright © 2017 JBoss by Red Hat. All rights reserved.