DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38067>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38067





------- Additional Comments From [EMAIL PROTECTED]  2006-01-04 17:05 -------
Here ya go ... isn't much to it. If ya like I can send the entire class if need 
be.

*********************************************************************************
 public void fetchFile(String sServerFile, String sLocalFile){
    FileOutputStream fout = null;
    
    try{
      this.setFileTransferMode(this.BINARY_FILE_TYPE);
      this.enterLocalPassiveMode();
      fout = new FileOutputStream(sLocalFile);
      boolean bSuccess = this.retrieveFile(sServerFile, fout);
      if(FTPReply.isPositiveIntermediate(getReplyCode())){
        this.completePendingCommand();
      }
      if(!FTPReply.isPositiveCompletion(getReplyCode())){
        System.out.println("retrieveFile() failed: " + getReplyString());
      }
    }catch(Exception e){
      System.out.println(e.getMessage());
      try{if(fout != null){fout.close();}}
      catch(Exception f){;}
    }finally{
      try{if(fout != null){fout.close();}}
      catch(Exception g){;}
    }
  }

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to