Package org.jclouds.io
Class ByteStreams2
- java.lang.Object
-
- org.jclouds.io.ByteStreams2
-
@Beta public class ByteStreams2 extends Object
-
-
Constructor Summary
Constructors Constructor Description ByteStreams2()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
copy(InputStream from, OutputStream to, int bufferSize)
static com.google.common.hash.HashCode
hashAndClose(InputStream input, com.google.common.hash.HashFunction hashFunction)
static byte[]
toByteArrayAndClose(InputStream input)
-
-
-
Method Detail
-
hashAndClose
public static com.google.common.hash.HashCode hashAndClose(InputStream input, com.google.common.hash.HashFunction hashFunction) throws IOException
- Throws:
IOException
-
toByteArrayAndClose
public static byte[] toByteArrayAndClose(InputStream input) throws IOException
- Throws:
IOException
-
copy
public static long copy(InputStream from, OutputStream to, int bufferSize) throws IOException
- Throws:
IOException
-
-