public interface

OmletBlobApi

mobisocial.omlib.api.OmletBlobApi

Class Overview

APIs for fetching and posting binary content.

Summary

Public Methods
abstract File getBlobForHash(byte[] blobHash, boolean frontOfQueue, CancellationSignal cancellationSignal)
Blocking call to return the binary file of a blob given its hash.
abstract void getBlobForHash(byte[] blobHash, boolean frontOfQueue, BlobDownloadListener listener, CancellationSignal cancellationSignal)
Asynchronous call to fetch a blob given its hash.
abstract BlobUploadListener.BlobUploadRecord uploadBlobWithProgress(File file, BlobUploadListener handler, String mimeType, CancellationSignal cancellationToken)

Public Methods

public abstract File getBlobForHash (byte[] blobHash, boolean frontOfQueue, CancellationSignal cancellationSignal)

Blocking call to return the binary file of a blob given its hash.

Throws
FileNotFoundException
NetworkException

public abstract void getBlobForHash (byte[] blobHash, boolean frontOfQueue, BlobDownloadListener listener, CancellationSignal cancellationSignal)

Asynchronous call to fetch a blob given its hash.

public abstract BlobUploadListener.BlobUploadRecord uploadBlobWithProgress (File file, BlobUploadListener handler, String mimeType, CancellationSignal cancellationToken)

Throws
IOException