Package org.apache.airavata.gfac.external

Examples of org.apache.airavata.gfac.external.GridFtp.uploadFile()


                } else if (paramValue.startsWith("file")) {
                    String localFile = paramValue.substring(paramValue.indexOf(":") + 1, paramValue.length());
                    FileInputStream fis = null;
                    try {
                      fis = new FileInputStream(localFile);
                      ftp.uploadFile(destURI, gssCred, fis);
                    } catch (IOException e) {
                        throw new GFacException("Unable to create file : " + localFile ,e);
                    } finally {
                        if (fis != null) {
                            fis.close();
View Full Code Here


                  // no need to do if it is unicore
                  if(isInputNonLocal) {
                    InputStream is = null;
                    try {
                      is = gridftpURL.toURL().openStream();
                      ftp.uploadFile(destURI, gssCred, (is));
                    }finally {
                      is.close();
                    }
                  } else {
                    // don't return destUri
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.