Examples of reName()


Examples of com.hdfsTools.impl.renameImpl.rename()

   */
  public boolean rename(String src, String dst) throws IOException {

    renameDao rename = new renameImpl();

    return rename.rename(getConf(), src, dst);
  }

  public static void main(String args[]) throws IOException {
    renameAction rename = new renameAction();
    String src = "/user/gg.txt1";

Examples of com.ikanow.infinit.e.harvest.extraction.document.file.InternalInfiniteFile.rename()

      }
      catch (IOException e) {
        System.out.println("7.8 passed: " + e.getMessage());       
      }
      try {
        test7.rename(test7.getUrlString());
        throw new RuntimeException("FAIL 7.8: rename should throw an exception");
      }
      catch (IOException e) {
        System.out.println("7.8 passed: " + e.getMessage());       
      }

Examples of com.intellij.openapi.vfs.VirtualFile.rename()

    if (newFileName == null || newFileName.equals(file.getName())) return;

    ApplicationManager.getApplication().runWriteAction(new Runnable() {
      @Override public void run() {
        try {
          file.rename(null, newFileName);
          updateTreeModel_HACK();
        } catch (IOException e) {
          IdeUtil.showErrorDialog(event.getProject(), "Couldn't rename " + file.getName() + " to " + newFileName, "Error");
        }
      }

Examples of com.jcraft.jsch.ChannelSftp.rename()

  protected void doRename(FileObject newfile) throws Exception
  {
    final ChannelSftp channel = fileSystem.getChannel();
    try
    {
      channel.rename(relPath, ((SftpFileObject) newfile).relPath);
    }
    finally
    {
      fileSystem.putChannel(channel);
    }

Examples of com.openshift.client.IDomain.rename()

  public void shouldUpdateDomainId() throws Throwable {
    // pre-conditions
    mockDirector.mockRenameDomain("foobarz", GET_DOMAINS_FOOBARS);
    final IDomain domain = user.getDomain("foobarz");
    // operation
    domain.rename("foobars");
    // verifications
    assertThat(domain.getId()).isEqualTo("foobars");
    final IDomain updatedDomain = user.getDomain("foobars");
    assertThat(updatedDomain).isNotNull();
    assertThat(updatedDomain.getId()).isEqualTo("foobars");

Examples of com.oreilly.servlet.multipart.DefaultFileRenamePolicy.rename()

        if ( ! (existingVFSItem instanceof LocalImpl)) {
          throw new AssertException("Can only LocalImpl VFS items, don't know what to do with file of type::" + existingVFSItem.getClass().getCanonicalName());
        }
        File existingFile = ((LocalImpl)existingVFSItem).getBasefile();
        File tmpOrigFilename = new File(existingFile.getAbsolutePath());
        String renamedFilename = frp.rename(tmpOrigFilename).getName();
        newFile = (VFSLeaf) uploadVFSContainer.resolve(renamedFilename);
        // Copy content to tmp file
        BufferedInputStream in = new BufferedInputStream(fileEl.getUploadInputStream());
        BufferedOutputStream out = new BufferedOutputStream(newFile.getOutputStream(false));
        boolean success = false;

Examples of com.oreilly.servlet.multipart.FileRenamePolicy.rename()

        if ( ! (existingVFSItem instanceof LocalImpl)) {
          throw new AssertException("Can only LocalImpl VFS items, don't know what to do with file of type::" + existingVFSItem.getClass().getCanonicalName());
        }
        File existingFile = ((LocalImpl)existingVFSItem).getBasefile();
        File tmpOrigFilename = new File(existingFile.getAbsolutePath());
        String renamedFilename = frp.rename(tmpOrigFilename).getName();
        newFile = (VFSLeaf) uploadVFSContainer.resolve(renamedFilename);
        // Copy content to tmp file
        BufferedInputStream in = new BufferedInputStream(fileEl.getUploadInputStream());
        BufferedOutputStream out = new BufferedOutputStream(newFile.getOutputStream(false));
        boolean success = false;

Examples of com.saasovation.collaboration.domain.model.calendar.Calendar.rename()

                this.calendarRepository()
                    .calendarOfId(
                            tenant,
                            new CalendarId(aCalendarId));

        calendar.rename(aName);

        this.calendarRepository().save(calendar);
    }

    public void scheduleCalendarEntry(

Examples of com.santiagolizardo.beobachter.beans.LogTypeManager.rename()

          return;
        }
        newName = newName.trim();
        if (newName.length() > 0 && !newName.equals(selected.getName())) {
          LogTypeManager logTypes = LogTypeManager.getInstance();
          logTypes.rename(selected, newName);

          updateLogTypes();
        }
      }
    });

Examples of com.sleepycat.db.internal.Db.rename()

                              final String newDatabaseName,
                              DatabaseConfig config)
        throws DatabaseException, java.io.FileNotFoundException {

        final Db db = DatabaseConfig.checkNull(config).createDatabase(null);
        db.rename(fileName, oldDatabaseName, newDatabaseName, 0);
    }

    /**
    Flush any cached information to disk.
    <p>
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.