public class StreamUtil extends Object
| Constructor and Description |
|---|
StreamUtil() |
StreamUtil(int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
long |
copy(InputStream input,
OutputStream output) |
byte[] |
toByteArray(InputStream input) |
void |
writeByteArray(OutputStream outs,
byte[] bytes) |
public long copy(InputStream input, OutputStream output) throws IOException
IOExceptionpublic byte[] toByteArray(InputStream input) throws IOException
IOExceptionpublic void writeByteArray(OutputStream outs, byte[] bytes) throws IOException
IOExceptionCopyright © 2004–2020 Eclipse Foundation. All rights reserved.