net.sf.j3d.io
Class ScpDownloader
java.lang.Object
net.sf.j3d.io.ScpDownloader
- All Implemented Interfaces:
- net.sf.j3d.ext.com.jcraft.jsch.UserInfo
public class ScpDownloader
- extends Object
- implements net.sf.j3d.ext.com.jcraft.jsch.UserInfo
ScpDownloader
public ScpDownloader(String host,
String user,
String passwd)
throws IOException
- Throws:
IOException
setDownloadDir
public void setDownloadDir(String dir)
setRetry
public void setRetry(int retry)
init
public void init()
throws IOException
- Throws:
IOException
dispose
public void dispose()
download
public void download(String file,
OutputStream fout)
throws IOException
- Throws:
IOException
download
public String download(String file)
throws IOException
- Throws:
IOException
getDownloader
public static ScpDownloader getDownloader(String host,
String user,
String passwd)
throws IOException
- Throws:
IOException
getPassphrase
public String getPassphrase()
- Specified by:
getPassphrase in interface net.sf.j3d.ext.com.jcraft.jsch.UserInfo
getPassword
public String getPassword()
- Specified by:
getPassword in interface net.sf.j3d.ext.com.jcraft.jsch.UserInfo
promptPassword
public boolean promptPassword(String message)
- Specified by:
promptPassword in interface net.sf.j3d.ext.com.jcraft.jsch.UserInfo
promptPassphrase
public boolean promptPassphrase(String message)
- Specified by:
promptPassphrase in interface net.sf.j3d.ext.com.jcraft.jsch.UserInfo
promptYesNo
public boolean promptYesNo(String message)
- Specified by:
promptYesNo in interface net.sf.j3d.ext.com.jcraft.jsch.UserInfo
showMessage
public void showMessage(String message)
- Specified by:
showMessage in interface net.sf.j3d.ext.com.jcraft.jsch.UserInfo
finalize
public void finalize()
- Overrides:
finalize in class Object