org.jclouds.io
Class ByteStreams2

java.lang.Object
  extended by org.jclouds.io.ByteStreams2

@Beta
public class ByteStreams2
extends Object


Constructor Summary
ByteStreams2()
           
 
Method Summary
static com.google.common.io.ByteSource asByteSource(Payload payload)
          Deprecated. 
static com.google.common.hash.HashCode hashAndClose(InputStream input, com.google.common.hash.HashFunction hashFunction)
           
static byte[] toByteArrayAndClose(InputStream input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteStreams2

public ByteStreams2()
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

asByteSource

@Deprecated
public static com.google.common.io.ByteSource asByteSource(Payload payload)
Deprecated. 



Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.