Package com.hdfsTools.action

Examples of com.hdfsTools.action.renameAction.rename()


    String src = file.getFileUrl();// 源url
    String dst = src.substring(0, src.lastIndexOf("/")) + "/" + name;// 新的url
    System.out.println("the new name is:" + dst);
    renameAction rename = new renameAction();
    try {
      dohdfs = rename.rename(src, dst);// 操作文件系统
    } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }//
    if (dohdfs) {
View Full Code Here

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.