/** * Copy a file from the path <code>from</code> to path <code>to</code>, asynchronously. * @param from the path to copy from * @param to the path to copy to * @param options options describing how the file should be copied * @return a reference to this, so the API can be used fluently * @deprecated use {@link #rxCopy} instead */ @Deprecated() public Observable<Void> copyObservable(String from, String to, CopyOptions options) { io.vertx.rx.java.ObservableFuture<Void> handler = io.vertx.rx.java.RxHelper.observableFuture(); copy(from, to, options, handler.toHandler()); return handler; }
/** * Copy a file from the path <code>from</code> to path <code>to</code>, asynchronously. * <p> * The copy will fail if the destination already exists. * @param from the path to copy from * @param to the path to copy to * @return a reference to this, so the API can be used fluently * @deprecated use {@link #rxCopy} instead */ @Deprecated() public Observable<Void> copyObservable(String from, String to) { io.vertx.rx.java.ObservableFuture<Void> handler = io.vertx.rx.java.RxHelper.observableFuture(); copy(from, to, handler.toHandler()); return handler; }
/** * Copy a file from the path <code>from</code> to path <code>to</code>, asynchronously. * @param from the path to copy from * @param to the path to copy to * @param options options describing how the file should be copied * @return a reference to this, so the API can be used fluently */ public Single<Void> rxCopy(String from, String to, CopyOptions options) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { copy(from, to, options, fut); })); }
/** * Copy a file from the path <code>from</code> to path <code>to</code>, asynchronously. * @param from the path to copy from * @param to the path to copy to * @param options options describing how the file should be copied * @return a reference to this, so the API can be used fluently */ public Single<Void> rxCopy(String from, String to, CopyOptions options) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { copy(from, to, options, fut); })); }
/** * Copy a file from the path <code>from</code> to path <code>to</code>, asynchronously. * <p> * The copy will fail if the destination already exists. * @param from the path to copy from * @param to the path to copy to * @return a reference to this, so the API can be used fluently */ public Single<Void> rxCopy(String from, String to) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { copy(from, to, fut); })); }
/** * Copy a file from the path <code>from</code> to path <code>to</code>, asynchronously. * <p> * The copy will fail if the destination already exists. * @param from the path to copy from * @param to the path to copy to * @return a reference to this, so the API can be used fluently */ public Single<Void> rxCopy(String from, String to) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { copy(from, to, fut); })); }