Examples of rename()


Examples of com.sos.VirtualFileSystem.Interfaces.ISOSVirtualFile.rename()

      }

      if (strOp.equalsIgnoreCase("rename")) {
        String strNewFileName = MakeFileNameReplacing(strSourceFileName);
        logger.debug(String.format("filename %1$s, renamed to %2$s", strSourceFileName, strNewFileName));
        objSourceFile.rename(strNewFileName);
        this.setStatus(enuTransferStatus.renamed);
        return;
      }

      ISOSVirtualFile objTargetFile = objDataTargetClient.getFileHandle(MakeFullPathName(objOptions.TargetDir.Value(), strTargetFileName));

Examples of com.sshtools.j2ssh.sftp.SftpFile.rename()

        {
            oldName = toSFTP(oldName);
            newName = toSFTP(newName);

            SftpFile f = sftp.openFile(oldName, RW);
            f.rename(newName);

            return true;
        }
        catch(Exception ex)
        {

Examples of com.trolltech.qt.core.QFile.rename()

      pix.loadFromData(image);
      newRes.setHeight(new Integer(pix.height()).shortValue());
      newRes.setWidth(new Integer(pix.width()).shortValue());
      logger.log(logger.EXTREME, "Renaming temporary file to " +newRes.getGuid()+".gif");
      path = Global.getFileManager().getResDirPath(newRes.getGuid()+".gif");
      tfile.rename(path);
    } else {
      newRes = conn.getNoteTable().noteResourceTable.getNoteResource(latexGuid, false);
      path = Global.getFileManager().getResDirPath(newRes.getGuid()+".gif");
      tfile = new QFile(path);
      tfile.open(new QIODevice.OpenMode(QIODevice.OpenModeFlag.WriteOnly));

Examples of com.vmware.aurora.vc.VcVirtualMachine.rename()

   public static void rename(final String vmId, final String newName) {
      VcContext.inVcSessionDo(new VcSession<Void>() {
         @Override
         protected Void body() throws Exception {
            VcVirtualMachine vm = VcCache.getIgnoreMissing(vmId);
            vm.rename(newName);

            return null;
         }

         @Override

Examples of de.chris_soft.nanodoa.gui.tree.path.LabelPath.rename()

  public void labelRenamed(long labelID, String newLabelName) {
    List<Object> children = getChildUserObjects(rootObject);
    for (Object userObject : children) {
      LabelPath labelPath = (LabelPath) userObject;
      if (labelPath.getID() == labelID) {
        labelPath.rename(newLabelName);
        refreshNode(userObject);
      }
    }
  }
}

Examples of floobits.common.interfaces.IFile.rename()

                    File oldFile = new File(oldPath);
                    File newFile = new File(newPath);
                    String newFileName = newFile.getName();
                    // Rename file

                    if (foundFile.rename(null, newFileName)) {
                        return;
                    }

                    // Move file
                    String newParentDirectoryPath = newFile.getParent();

Examples of javax.naming.Context.rename()

        }

        if (nOld instanceof CompositeName && nOld.size() > 1
                && nNew instanceof CompositeName && nNew.size() > 1) {
            Context context = findNnsContext(nOld);
            context.rename(nOld.getSuffix(1), nNew.getSuffix(1));
            return;
        }

        // get absolute dn name
        String oldTargetDN = getTargetDN(nOld, contextDn);

Examples of javax.naming.InitialContext.rename()

         // Bind using complete URL
         iniCtx.bind("jnp://localhost/helloserver",hello2);
         System.out.println("Bound helloserver");
        
         // Rename using URL
         iniCtx.rename("helloserver","jnp://localhost/test/helloserver");
         System.out.println("Renamed helloserver to test/helloserver");
        
         // Bind to root using absolute and relative names

         test.bind("/helloserver2",test.lookup("helloserver"));

Examples of javax.naming.directory.DirContext.rename()

        ( ( LdapContext ) ctx ).setRequestControls( new javax.naming.ldap.Control[]
            { new ManageReferralControl() } );

        // Now let's move the entry
        ctx.rename( "c=america,ou=Countries,ou=system", "c=us,ou=system" );

        controls.setSearchScope( SearchControls.OBJECT_SCOPE );

        ( ( LdapContext ) ctx ).setRequestControls( new javax.naming.ldap.Control[]
            {} );

Examples of javax.naming.directory.InitialDirContext.rename()

     * @param attributes
     * @throws NamingException
     */
    public void modifydn(String dn, String attributesthrows NamingException{
      DirContext ctx = new InitialDirContext(env);
      ctx.rename(dn, attributes);
      ctx.close();
    }
   
    public void modify(String dn, int modifytype, String strAttributes, String delimiter, String separator) throws NamingException, PageException {

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.