बाइट स्ट्रीम डाउनलोडर

public class ByteStreamDownloader
extends Object

java.lang.Object
com.android.tradefed.cache.remote.ByteStreamDownloader


ByteStream gRPC सेवा के Read तरीके को लागू करने वाला क्लाइंट.

खास जानकारी

सार्वजनिक कंस्ट्रक्टर

ByteStreamDownloader(String instanceName, Channel channel, CallCredentials callCredentials, Duration callTimeout)

सार्वजनिक तरीके

ListenableFuture<Void> downloadBlob(Digest digest, OutputStream out)

रिमोट ByteStream सेवा से BLOB डाउनलोड करता है.

सार्वजनिक कंस्ट्रक्टर

बाइट स्ट्रीम डाउनलोडर

public ByteStreamDownloader (String instanceName, 
                Channel channel, 
                CallCredentials callCredentials, 
                Duration callTimeout)

पैरामीटर
instanceName String

channel Channel

callCredentials CallCredentials

callTimeout Duration

सार्वजनिक तरीके

डाउनलोडब्लॉब

public ListenableFuture<Void> downloadBlob (Digest digest, 
                OutputStream out)

रिमोट ByteStream सेवा से BLOB डाउनलोड करता है.

पैरामीटर
digest Digest: डाउनलोड करने के लिए BLOB का डाइजेस्ट.

out OutputStream: वह ERROR(/OutputStream) जहां BLOB डाउनलोड किया जाता है.

रिटर्न
ListenableFuture<Void>