Package org.globus.ftp

Examples of org.globus.ftp.DataSource


 
  public void upload(File file, String directory, String remoteFile, GSSCredential credential){
    try {
      GridFTPClient gridFTPClient = new GridFTPClient("", 9393);
      gridFTPClient.authenticate(credential);
      DataSource source = new DataSourceStream(new FileInputStream(file));
      if(null != directory){
        gridFTPClient.changeDir(directory);
      }
      gridFTPClient.extendedPut(remoteFile, source, this);
    } catch (ServerException e) {
View Full Code Here

TOP

Related Classes of org.globus.ftp.DataSource

Copyright © 2018 www.massapicom. 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.