ByteStreamDownloader

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 डाउनलोड करती है.

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

ByteStreamDownloader

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

पैरामीटर
instanceName String

channel Channel

callCredentials CallCredentials

callTimeout Duration

पब्लिक मेथड

downloadBlob

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

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

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

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

रिटर्न
ListenableFuture<Void>