/** * Creates a new directory in the default temporary-file directory, using the given * prefix to generate its name, asynchronously. * * <p> * As with the <code>File.createTempFile</code> methods, this method is only * part of a temporary-file facility.A {@link java.lang.Runtime}, * or the {@link java.io.File} mechanism may be used to delete the directory automatically. * </p> * @param prefix the prefix string to be used in generating the directory's name; may be <code>null</code> * @return a reference to this, so the API can be used fluently * @deprecated use {@link #rxCreateTempDirectory} instead */ @Deprecated() public Observable<String> createTempDirectoryObservable(String prefix) { io.vertx.rx.java.ObservableFuture<String> handler = io.vertx.rx.java.RxHelper.observableFuture(); createTempDirectory(prefix, handler.toHandler()); return handler; }
/** * Creates a new directory in the default temporary-file directory, using the given * prefix to generate its name, asynchronously. * <p> * The new directory will be created with permissions as specified by <code>perms</code>. * </p> * The permission String takes the form rwxr-x--- as specified * in <a href="http://download.oracle.com/javase/7/docs/api/java/nio/file/attribute/PosixFilePermissions.html">here</a>. * * <p> * As with the <code>File.createTempFile</code> methods, this method is only * part of a temporary-file facility.A {@link java.lang.Runtime}, * or the {@link java.io.File} mechanism may be used to delete the directory automatically. * </p> * @param prefix the prefix string to be used in generating the directory's name; may be <code>null</code> * @param perms the permissions string * @return a reference to this, so the API can be used fluently * @deprecated use {@link #rxCreateTempDirectory} instead */ @Deprecated() public Observable<String> createTempDirectoryObservable(String prefix, String perms) { io.vertx.rx.java.ObservableFuture<String> handler = io.vertx.rx.java.RxHelper.observableFuture(); createTempDirectory(prefix, perms, handler.toHandler()); return handler; }
/** * Creates a new directory in the default temporary-file directory, using the given * prefix to generate its name, asynchronously. * * <p> * As with the <code>File.createTempFile</code> methods, this method is only * part of a temporary-file facility.A {@link java.lang.Runtime}, * or the {@link java.io.File} mechanism may be used to delete the directory automatically. * </p> * @param prefix the prefix string to be used in generating the directory's name; may be <code>null</code> * @return a reference to this, so the API can be used fluently */ public Single<String> rxCreateTempDirectory(String prefix) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { createTempDirectory(prefix, fut); })); }
/** * Creates a new directory in the directory provided by the path <code>path</code>, using the given * prefix to generate its name, asynchronously. * <p> * The new directory will be created with permissions as specified by <code>perms</code>. * </p> * The permission String takes the form rwxr-x--- as specified * in <a href="http://download.oracle.com/javase/7/docs/api/java/nio/file/attribute/PosixFilePermissions.html">here</a>. * * <p> * As with the <code>File.createTempFile</code> methods, this method is only * part of a temporary-file facility.A {@link java.lang.Runtime}, * or the {@link java.io.File} mechanism may be used to delete the directory automatically. * </p> * @param dir the path to directory in which to create the directory * @param prefix the prefix string to be used in generating the directory's name; may be <code>null</code> * @param perms the permissions string * @return a reference to this, so the API can be used fluently * @deprecated use {@link #rxCreateTempDirectory} instead */ @Deprecated() public Observable<String> createTempDirectoryObservable(String dir, String prefix, String perms) { io.vertx.rx.java.ObservableFuture<String> handler = io.vertx.rx.java.RxHelper.observableFuture(); createTempDirectory(dir, prefix, perms, handler.toHandler()); return handler; }
/** * Creates a new directory in the default temporary-file directory, using the given * prefix to generate its name, asynchronously. * * <p> * As with the <code>File.createTempFile</code> methods, this method is only * part of a temporary-file facility.A {@link java.lang.Runtime}, * or the {@link java.io.File} mechanism may be used to delete the directory automatically. * </p> * @param prefix the prefix string to be used in generating the directory's name; may be <code>null</code> * @return a reference to this, so the API can be used fluently */ public Single<String> rxCreateTempDirectory(String prefix) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { createTempDirectory(prefix, fut); })); }
/** * Creates a new directory in the directory provided by the path <code>path</code>, using the given * prefix to generate its name, asynchronously. * <p> * The new directory will be created with permissions as specified by <code>perms</code>. * </p> * The permission String takes the form rwxr-x--- as specified * in <a href="http://download.oracle.com/javase/7/docs/api/java/nio/file/attribute/PosixFilePermissions.html">here</a>. * * <p> * As with the <code>File.createTempFile</code> methods, this method is only * part of a temporary-file facility.A {@link java.lang.Runtime}, * or the {@link java.io.File} mechanism may be used to delete the directory automatically. * </p> * @param dir the path to directory in which to create the directory * @param prefix the prefix string to be used in generating the directory's name; may be <code>null</code> * @param perms the permissions string * @return a reference to this, so the API can be used fluently */ public Single<String> rxCreateTempDirectory(String dir, String prefix, String perms) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { createTempDirectory(dir, prefix, perms, fut); })); }
/** * Creates a new directory in the default temporary-file directory, using the given * prefix to generate its name, asynchronously. * <p> * The new directory will be created with permissions as specified by <code>perms</code>. * </p> * The permission String takes the form rwxr-x--- as specified * in <a href="http://download.oracle.com/javase/7/docs/api/java/nio/file/attribute/PosixFilePermissions.html">here</a>. * * <p> * As with the <code>File.createTempFile</code> methods, this method is only * part of a temporary-file facility.A {@link java.lang.Runtime}, * or the {@link java.io.File} mechanism may be used to delete the directory automatically. * </p> * @param prefix the prefix string to be used in generating the directory's name; may be <code>null</code> * @param perms the permissions string * @return a reference to this, so the API can be used fluently */ public Single<String> rxCreateTempDirectory(String prefix, String perms) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { createTempDirectory(prefix, perms, fut); })); }
/** * Creates a new directory in the default temporary-file directory, using the given * prefix to generate its name, asynchronously. * <p> * The new directory will be created with permissions as specified by <code>perms</code>. * </p> * The permission String takes the form rwxr-x--- as specified * in <a href="http://download.oracle.com/javase/7/docs/api/java/nio/file/attribute/PosixFilePermissions.html">here</a>. * * <p> * As with the <code>File.createTempFile</code> methods, this method is only * part of a temporary-file facility.A {@link java.lang.Runtime}, * or the {@link java.io.File} mechanism may be used to delete the directory automatically. * </p> * @param prefix the prefix string to be used in generating the directory's name; may be <code>null</code> * @param perms the permissions string * @return a reference to this, so the API can be used fluently */ public Single<String> rxCreateTempDirectory(String prefix, String perms) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { createTempDirectory(prefix, perms, fut); })); }
/** * Creates a new directory in the directory provided by the path <code>path</code>, using the given * prefix to generate its name, asynchronously. * <p> * The new directory will be created with permissions as specified by <code>perms</code>. * </p> * The permission String takes the form rwxr-x--- as specified * in <a href="http://download.oracle.com/javase/7/docs/api/java/nio/file/attribute/PosixFilePermissions.html">here</a>. * * <p> * As with the <code>File.createTempFile</code> methods, this method is only * part of a temporary-file facility.A {@link java.lang.Runtime}, * or the {@link java.io.File} mechanism may be used to delete the directory automatically. * </p> * @param dir the path to directory in which to create the directory * @param prefix the prefix string to be used in generating the directory's name; may be <code>null</code> * @param perms the permissions string * @return a reference to this, so the API can be used fluently */ public Single<String> rxCreateTempDirectory(String dir, String prefix, String perms) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { createTempDirectory(dir, prefix, perms, fut); })); }