public final class StreamUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
CopyBytes(RandomAccessSource source,
long start,
long length,
java.io.OutputStream outs) |
static byte[] |
inputStreamToArray(java.io.InputStream is)
Reads the full content of a stream and returns them in a byte array
|
public static byte[] inputStreamToArray(java.io.InputStream is) throws java.io.IOException
is
- the stream to readjava.io.IOException
- if there is a problem reading from the input streampublic static void CopyBytes(RandomAccessSource source, long start, long length, java.io.OutputStream outs) throws java.io.IOException
java.io.IOException
Copyright © 2013. All Rights Reserved.