Hi,
+-From: Maarten Mulders <[email protected]> --
|_Date: Sat, 20 Aug 2011 22:30:45 +0200 ___________
|
|While trying to solve a problem in my code, I wanted to use the
|SftpProgressMonitor to print out some debugging info.
|It seems that this interfaces init() method never gets called; it would
|seem to me it should. The Sftp example code from JSch also uses this method.
|I came across a message posted to this list in March 2010, saying it
|would be fixed [1]. So I'm wondering whether the current version should
|include this fix or not. It seems however it doesn't... Anyone who knows
|when to expect it?
I guess you are talking about the method
ChannelSftp#put(InputStream src, String dst, SftpProgressMonitor monitor);
I had tried to fix that code, but stacked.
What kind of value should be passed as the fourth argument of
SftpProgressMonitor#init(int op, String src, String dest, long max)
Should it be 0 , -1 or java.lang.Long.MAX_VALUE ?
I think that java.lang.Long.MAX_VALUE will be appropriate.
If no objections, I'll change the code with it.
Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
+1-415-578-3454
Skype callto://jcraft/
Twitter: http://twitter.com/ymnk
Facebook: http://facebook.com/aymnk
------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing Subversion and
the tools developers use with it. Learn more about uberSVN and get a free
download at: http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users