@Beta public class ByteStreams2 extends Object
Constructor and Description |
---|
ByteStreams2() |
Modifier and Type | Method and Description |
---|---|
static com.google.common.hash.HashCode |
hashAndClose(InputStream input,
com.google.common.hash.HashFunction hashFunction) |
static byte[] |
toByteArrayAndClose(InputStream input) |
public static com.google.common.hash.HashCode hashAndClose(InputStream input, com.google.common.hash.HashFunction hashFunction) throws IOException
IOException
public static byte[] toByteArrayAndClose(InputStream input) throws IOException
IOException
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.