public class StreamUtil
extends java.lang.Object
Constructor and Description |
---|
StreamUtil() |
StreamUtil(int bufferSize) |
Modifier and Type | Method and Description |
---|---|
long |
copy(java.io.InputStream input,
java.io.OutputStream output) |
byte[] |
toByteArray(java.io.InputStream input) |
void |
writeByteArray(java.io.OutputStream outs,
byte[] bytes) |
public long copy(java.io.InputStream input, java.io.OutputStream output) throws java.io.IOException
java.io.IOException
public byte[] toByteArray(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public void writeByteArray(java.io.OutputStream outs, byte[] bytes) throws java.io.IOException
java.io.IOException