congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
File.join
Code IndexAdd Tabnine to your IDE (free)

How to use
join
method
in
java.io.File

Best Java code snippets using java.io.File.join (Showing top 14 results out of 315)

origin: robovm/robovm

/**
 * Returns the absolute path of this file. An absolute path is a path that starts at a root
 * of the file system. On Android, there is only one root: {@code /}.
 *
 * <p>A common use for absolute paths is when passing paths to a {@code Process} as
 * command-line arguments, to remove the requirement implied by relative paths, that the
 * child must have the same working directory as its parent.
 */
public String getAbsolutePath() {
  if (isAbsolute()) {
    return path;
  }
  String userDir = System.getProperty("user.dir");
  return path.isEmpty() ? userDir : join(userDir, path);
}
origin: robovm/robovm

/**
 * Constructs a new File using the specified directory path and file name,
 * placing a path separator between the two.
 *
 * @param dirPath
 *            the path to the directory where the file is stored.
 * @param name
 *            the file's name.
 * @throws NullPointerException
 *             if {@code name == null}.
 */
public File(String dirPath, String name) {
  if (name == null) {
    throw new NullPointerException("name == null");
  }
  if (dirPath == null || dirPath.isEmpty()) {
    this.path = fixSlashes(name);
  } else if (name.isEmpty()) {
    this.path = fixSlashes(dirPath);
  } else {
    this.path = fixSlashes(join(dirPath, name));
  }
}
origin: MobiVM/robovm

/**
 * Returns the absolute path of this file. An absolute path is a path that starts at a root
 * of the file system. On Android, there is only one root: {@code /}.
 *
 * <p>A common use for absolute paths is when passing paths to a {@code Process} as
 * command-line arguments, to remove the requirement implied by relative paths, that the
 * child must have the same working directory as its parent.
 */
public String getAbsolutePath() {
  if (isAbsolute()) {
    return path;
  }
  String userDir = System.getProperty("user.dir");
  return path.isEmpty() ? userDir : join(userDir, path);
}
origin: FlexoVM/flexovm

/**
 * Returns the absolute path of this file. An absolute path is a path that starts at a root
 * of the file system. On Android, there is only one root: {@code /}.
 *
 * <p>A common use for absolute paths is when passing paths to a {@code Process} as
 * command-line arguments, to remove the requirement implied by relative paths, that the
 * child must have the same working directory as its parent.
 */
public String getAbsolutePath() {
  if (isAbsolute()) {
    return path;
  }
  String userDir = System.getProperty("user.dir");
  return path.isEmpty() ? userDir : join(userDir, path);
}
origin: ibinti/bugvm

/**
 * Returns the absolute path of this file. An absolute path is a path that starts at a root
 * of the file system. On Android, there is only one root: {@code /}.
 *
 * <p>A common use for absolute paths is when passing paths to a {@code Process} as
 * command-line arguments, to remove the requirement implied by relative paths, that the
 * child must have the same working directory as its parent.
 */
public String getAbsolutePath() {
  if (isAbsolute()) {
    return path;
  }
  String userDir = System.getProperty("user.dir");
  return path.isEmpty() ? userDir : join(userDir, path);
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Returns the absolute path of this file. An absolute path is a path that starts at a root
 * of the file system. On Android, there is only one root: {@code /}.
 *
 * <p>A common use for absolute paths is when passing paths to a {@code Process} as
 * command-line arguments, to remove the requirement implied by relative paths, that the
 * child must have the same working directory as its parent.
 */
public String getAbsolutePath() {
  if (isAbsolute()) {
    return path;
  }
  String userDir = System.getProperty("user.dir");
  return path.isEmpty() ? userDir : join(userDir, path);
}
origin: com.bugvm/bugvm-rt

/**
 * Returns the absolute path of this file. An absolute path is a path that starts at a root
 * of the file system. On Android, there is only one root: {@code /}.
 *
 * <p>A common use for absolute paths is when passing paths to a {@code Process} as
 * command-line arguments, to remove the requirement implied by relative paths, that the
 * child must have the same working directory as its parent.
 */
public String getAbsolutePath() {
  if (isAbsolute()) {
    return path;
  }
  String userDir = System.getProperty("user.dir");
  return path.isEmpty() ? userDir : join(userDir, path);
}
origin: com.gluonhq/robovm-rt

/**
 * Returns the absolute path of this file. An absolute path is a path that starts at a root
 * of the file system. On Android, there is only one root: {@code /}.
 *
 * <p>A common use for absolute paths is when passing paths to a {@code Process} as
 * command-line arguments, to remove the requirement implied by relative paths, that the
 * child must have the same working directory as its parent.
 */
public String getAbsolutePath() {
  if (isAbsolute()) {
    return path;
  }
  String userDir = System.getProperty("user.dir");
  return path.isEmpty() ? userDir : join(userDir, path);
}
origin: MobiVM/robovm

/**
 * Constructs a new File using the specified directory path and file name,
 * placing a path separator between the two.
 *
 * @param dirPath
 *            the path to the directory where the file is stored.
 * @param name
 *            the file's name.
 * @throws NullPointerException
 *             if {@code name == null}.
 */
public File(String dirPath, String name) {
  if (name == null) {
    throw new NullPointerException("name == null");
  }
  if (dirPath == null || dirPath.isEmpty()) {
    this.path = fixSlashes(name);
  } else if (name.isEmpty()) {
    this.path = fixSlashes(dirPath);
  } else {
    this.path = fixSlashes(join(dirPath, name));
  }
}
origin: com.bugvm/bugvm-rt

/**
 * Constructs a new File using the specified directory path and file name,
 * placing a path separator between the two.
 *
 * @param dirPath
 *            the path to the directory where the file is stored.
 * @param name
 *            the file's name.
 * @throws NullPointerException
 *             if {@code name == null}.
 */
public File(String dirPath, String name) {
  if (name == null) {
    throw new NullPointerException("name == null");
  }
  if (dirPath == null || dirPath.isEmpty()) {
    this.path = fixSlashes(name);
  } else if (name.isEmpty()) {
    this.path = fixSlashes(dirPath);
  } else {
    this.path = fixSlashes(join(dirPath, name));
  }
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Constructs a new File using the specified directory path and file name,
 * placing a path separator between the two.
 *
 * @param dirPath
 *            the path to the directory where the file is stored.
 * @param name
 *            the file's name.
 * @throws NullPointerException
 *             if {@code name == null}.
 */
public File(String dirPath, String name) {
  if (name == null) {
    throw new NullPointerException("name == null");
  }
  if (dirPath == null || dirPath.isEmpty()) {
    this.path = fixSlashes(name);
  } else if (name.isEmpty()) {
    this.path = fixSlashes(dirPath);
  } else {
    this.path = fixSlashes(join(dirPath, name));
  }
}
origin: ibinti/bugvm

/**
 * Constructs a new File using the specified directory path and file name,
 * placing a path separator between the two.
 *
 * @param dirPath
 *            the path to the directory where the file is stored.
 * @param name
 *            the file's name.
 * @throws NullPointerException
 *             if {@code name == null}.
 */
public File(String dirPath, String name) {
  if (name == null) {
    throw new NullPointerException("name == null");
  }
  if (dirPath == null || dirPath.isEmpty()) {
    this.path = fixSlashes(name);
  } else if (name.isEmpty()) {
    this.path = fixSlashes(dirPath);
  } else {
    this.path = fixSlashes(join(dirPath, name));
  }
}
origin: com.gluonhq/robovm-rt

/**
 * Constructs a new File using the specified directory path and file name,
 * placing a path separator between the two.
 *
 * @param dirPath
 *            the path to the directory where the file is stored.
 * @param name
 *            the file's name.
 * @throws NullPointerException
 *             if {@code name == null}.
 */
public File(String dirPath, String name) {
  if (name == null) {
    throw new NullPointerException("name == null");
  }
  if (dirPath == null || dirPath.isEmpty()) {
    this.path = fixSlashes(name);
  } else if (name.isEmpty()) {
    this.path = fixSlashes(dirPath);
  } else {
    this.path = fixSlashes(join(dirPath, name));
  }
}
origin: FlexoVM/flexovm

/**
 * Constructs a new File using the specified directory path and file name,
 * placing a path separator between the two.
 *
 * @param dirPath
 *            the path to the directory where the file is stored.
 * @param name
 *            the file's name.
 * @throws NullPointerException
 *             if {@code name == null}.
 */
public File(String dirPath, String name) {
  if (name == null) {
    throw new NullPointerException("name == null");
  }
  if (dirPath == null || dirPath.isEmpty()) {
    this.path = fixSlashes(name);
  } else if (name.isEmpty()) {
    this.path = fixSlashes(dirPath);
  } else {
    this.path = fixSlashes(join(dirPath, name));
  }
}
java.ioFilejoin

Popular methods of File

  • <init>
    Creates a new File instance by converting the givenfile: URI into an abstract pathname. The exact fo
  • exists
    Tests whether the file or directory denoted by this abstract pathname exists.
  • getAbsolutePath
    Returns the absolute pathname string of this abstract pathname. If this abstract pathname is already
  • getName
    Returns the name of the file or directory denoted by this abstract pathname. This is just the last n
  • isDirectory
  • mkdirs
  • delete
    Deletes the file or directory denoted by this abstract pathname. If this pathname denotes a director
  • listFiles
    Returns an array of abstract pathnames denoting the files and directories in the directory denoted b
  • getParentFile
    Returns the abstract pathname of this abstract pathname's parent, or null if this pathname does not
  • getPath
    Converts this abstract pathname into a pathname string. The resulting string uses the #separator to
  • isFile
  • length
    Returns the length of the file denoted by this abstract pathname. The return value is unspecified if
  • isFile,
  • length,
  • toURI,
  • createTempFile,
  • createNewFile,
  • toPath,
  • mkdir,
  • lastModified,
  • toString,
  • getCanonicalPath

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setScale (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now