@NonNull @CheckReturnValue public static Single<byte[]> getData(@NonNull final ParseFile file, @NonNull final ProgressCallback progressCallback) { return RxTask.single(() -> file.getDataInBackground(progressCallback)); }
@NonNull @CheckReturnValue public static Single<InputStream> getDataStream(@NonNull final ParseFile file, @NonNull final ProgressCallback progressCallback) { return RxTask.single(() -> file.getDataStreamInBackground(progressCallback)); }
@NonNull @CheckReturnValue public static Single<File> getFile(@NonNull final ParseFile file, @NonNull final ProgressCallback progressCallback) { return RxTask.single(() -> file.getFileInBackground(progressCallback)); }
@NonNull public static Completable save(@NonNull final ParseFile file, @NonNull final ProgressCallback uploadProgressCallback) { return RxTask.completable(() -> file.saveInBackground(uploadProgressCallback)); }