Package org.globus.ftp

Examples of org.globus.ftp.DataSinkStream


  public void downloadFile(String remoteFileName, String directory, GSSCredential credential, OutputStream out){
    try {
      GridFTPClient gridFTPClient = new GridFTPClient("", 9393);
      gridFTPClient.authenticate(credential);
      gridFTPClient.changeDir(directory);
      DataSink sink = new DataSinkStream(out);
      gridFTPClient.get(remoteFileName,  sink , this);
    } catch (ServerException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    } catch (IOException e) {
View Full Code Here

TOP

Related Classes of org.globus.ftp.DataSinkStream

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.