Codota Logo
Os.rename
Code IndexAdd Codota to your IDE (free)

How to use
rename
method
in
libcore.io.Os

Best Java code snippets using libcore.io.Os.rename (Showing top 14 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: robovm/robovm

public void rename(String oldPath, String newPath) throws ErrnoException { os.rename(oldPath, newPath); }
public long sendfile(FileDescriptor outFd, FileDescriptor inFd, MutableLong inOffset, long byteCount) throws ErrnoException { return os.sendfile(outFd, inFd, inOffset, byteCount); }
origin: robovm/robovm

/**
 * Renames this file to {@code newPath}. This operation is supported for both
 * files and directories.
 *
 * <p>Many failures are possible. Some of the more likely failures include:
 * <ul>
 * <li>Write permission is required on the directories containing both the source and
 * destination paths.
 * <li>Search permission is required for all parents of both paths.
 * <li>Both paths be on the same mount point. On Android, applications are most likely to hit
 * this restriction when attempting to copy between internal storage and an SD card.
 * </ul>
 *
 * <p>Note that this method does <i>not</i> throw {@code IOException} on failure.
 * Callers must check the return value.
 *
 * @param newPath the new path.
 * @return true on success.
 */
public boolean renameTo(File newPath) {
  try {
    Libcore.os.rename(path, newPath.path);
    return true;
  } catch (ErrnoException errnoException) {
    return false;
  }
}
origin: ibinti/bugvm

public void rename(String oldPath, String newPath) throws ErrnoException { os.rename(oldPath, newPath); }
public long sendfile(FileDescriptor outFd, FileDescriptor inFd, MutableLong inOffset, long byteCount) throws ErrnoException { return os.sendfile(outFd, inFd, inOffset, byteCount); }
origin: com.mobidevelop.robovm/robovm-rt

public void rename(String oldPath, String newPath) throws ErrnoException { os.rename(oldPath, newPath); }
public long sendfile(FileDescriptor outFd, FileDescriptor inFd, MutableLong inOffset, long byteCount) throws ErrnoException { return os.sendfile(outFd, inFd, inOffset, byteCount); }
origin: com.bugvm/bugvm-rt

public void rename(String oldPath, String newPath) throws ErrnoException { os.rename(oldPath, newPath); }
public long sendfile(FileDescriptor outFd, FileDescriptor inFd, MutableLong inOffset, long byteCount) throws ErrnoException { return os.sendfile(outFd, inFd, inOffset, byteCount); }
origin: MobiVM/robovm

public void rename(String oldPath, String newPath) throws ErrnoException { os.rename(oldPath, newPath); }
public long sendfile(FileDescriptor outFd, FileDescriptor inFd, MutableLong inOffset, long byteCount) throws ErrnoException { return os.sendfile(outFd, inFd, inOffset, byteCount); }
origin: FlexoVM/flexovm

public void rename(String oldPath, String newPath) throws ErrnoException { os.rename(oldPath, newPath); }
public long sendfile(FileDescriptor outFd, FileDescriptor inFd, MutableLong inOffset, long byteCount) throws ErrnoException { return os.sendfile(outFd, inFd, inOffset, byteCount); }
origin: com.gluonhq/robovm-rt

public void rename(String oldPath, String newPath) throws ErrnoException { os.rename(oldPath, newPath); }
public long sendfile(FileDescriptor outFd, FileDescriptor inFd, MutableLong inOffset, long byteCount) throws ErrnoException { return os.sendfile(outFd, inFd, inOffset, byteCount); }
origin: MobiVM/robovm

/**
 * Renames this file to {@code newPath}. This operation is supported for both
 * files and directories.
 *
 * <p>Many failures are possible. Some of the more likely failures include:
 * <ul>
 * <li>Write permission is required on the directories containing both the source and
 * destination paths.
 * <li>Search permission is required for all parents of both paths.
 * <li>Both paths be on the same mount point. On Android, applications are most likely to hit
 * this restriction when attempting to copy between internal storage and an SD card.
 * </ul>
 *
 * <p>Note that this method does <i>not</i> throw {@code IOException} on failure.
 * Callers must check the return value.
 *
 * @param newPath the new path.
 * @return true on success.
 */
public boolean renameTo(File newPath) {
  try {
    Libcore.os.rename(path, newPath.path);
    return true;
  } catch (ErrnoException errnoException) {
    return false;
  }
}
origin: com.bugvm/bugvm-rt

/**
 * Renames this file to {@code newPath}. This operation is supported for both
 * files and directories.
 *
 * <p>Many failures are possible. Some of the more likely failures include:
 * <ul>
 * <li>Write permission is required on the directories containing both the source and
 * destination paths.
 * <li>Search permission is required for all parents of both paths.
 * <li>Both paths be on the same mount point. On Android, applications are most likely to hit
 * this restriction when attempting to copy between internal storage and an SD card.
 * </ul>
 *
 * <p>Note that this method does <i>not</i> throw {@code IOException} on failure.
 * Callers must check the return value.
 *
 * @param newPath the new path.
 * @return true on success.
 */
public boolean renameTo(File newPath) {
  try {
    Libcore.os.rename(path, newPath.path);
    return true;
  } catch (ErrnoException errnoException) {
    return false;
  }
}
origin: com.gluonhq/robovm-rt

/**
 * Renames this file to {@code newPath}. This operation is supported for both
 * files and directories.
 *
 * <p>Many failures are possible. Some of the more likely failures include:
 * <ul>
 * <li>Write permission is required on the directories containing both the source and
 * destination paths.
 * <li>Search permission is required for all parents of both paths.
 * <li>Both paths be on the same mount point. On Android, applications are most likely to hit
 * this restriction when attempting to copy between internal storage and an SD card.
 * </ul>
 *
 * <p>Note that this method does <i>not</i> throw {@code IOException} on failure.
 * Callers must check the return value.
 *
 * @param newPath the new path.
 * @return true on success.
 */
public boolean renameTo(File newPath) {
  try {
    Libcore.os.rename(path, newPath.path);
    return true;
  } catch (ErrnoException errnoException) {
    return false;
  }
}
origin: ibinti/bugvm

/**
 * Renames this file to {@code newPath}. This operation is supported for both
 * files and directories.
 *
 * <p>Many failures are possible. Some of the more likely failures include:
 * <ul>
 * <li>Write permission is required on the directories containing both the source and
 * destination paths.
 * <li>Search permission is required for all parents of both paths.
 * <li>Both paths be on the same mount point. On Android, applications are most likely to hit
 * this restriction when attempting to copy between internal storage and an SD card.
 * </ul>
 *
 * <p>Note that this method does <i>not</i> throw {@code IOException} on failure.
 * Callers must check the return value.
 *
 * @param newPath the new path.
 * @return true on success.
 */
public boolean renameTo(File newPath) {
  try {
    Libcore.os.rename(path, newPath.path);
    return true;
  } catch (ErrnoException errnoException) {
    return false;
  }
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Renames this file to {@code newPath}. This operation is supported for both
 * files and directories.
 *
 * <p>Many failures are possible. Some of the more likely failures include:
 * <ul>
 * <li>Write permission is required on the directories containing both the source and
 * destination paths.
 * <li>Search permission is required for all parents of both paths.
 * <li>Both paths be on the same mount point. On Android, applications are most likely to hit
 * this restriction when attempting to copy between internal storage and an SD card.
 * </ul>
 *
 * <p>Note that this method does <i>not</i> throw {@code IOException} on failure.
 * Callers must check the return value.
 *
 * @param newPath the new path.
 * @return true on success.
 */
public boolean renameTo(File newPath) {
  try {
    Libcore.os.rename(path, newPath.path);
    return true;
  } catch (ErrnoException errnoException) {
    return false;
  }
}
origin: FlexoVM/flexovm

/**
 * Renames this file to {@code newPath}. This operation is supported for both
 * files and directories.
 *
 * <p>Many failures are possible. Some of the more likely failures include:
 * <ul>
 * <li>Write permission is required on the directories containing both the source and
 * destination paths.
 * <li>Search permission is required for all parents of both paths.
 * <li>Both paths be on the same mount point. On Android, applications are most likely to hit
 * this restriction when attempting to copy between internal storage and an SD card.
 * </ul>
 *
 * <p>Note that this method does <i>not</i> throw {@code IOException} on failure.
 * Callers must check the return value.
 *
 * @param newPath the new path.
 * @return true on success.
 */
public boolean renameTo(File newPath) {
  try {
    Libcore.os.rename(path, newPath.path);
    return true;
  } catch (ErrnoException errnoException) {
    return false;
  }
}
libcore.ioOsrename

Popular methods of Os

  • accept
  • access
  • bind
  • chmod
  • chown
  • close
  • connect
  • dup
  • dup2
  • environ
  • execv
  • execve
  • execv,
  • execve,
  • fchmod,
  • fchown,
  • fcntlFlock,
  • fcntlLong,
  • fcntlVoid,
  • fdatasync,
  • fstat,
  • fstatvfs

Popular in Java

  • Start an intent from android
  • getSystemService (Context)
  • getContentResolver (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • 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
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now