Hi,
+-From: Maarten Mulders <[email protected]> --
|_Date: Mon, 22 Aug 2011 21:21:24 +0200 ___________
|
|Hi, Actually, to me -1 would make more sense... The src argument
|might or might not contain 0 bytes. It might or might not contain
|java.lang.Long.MAX_VALUE bytes. But in no way, it will contain -1
|bytes.
|So this way it's clear that the amount of bytes in the InputStream
|is unpredictable.
Ok, so I'll add the following field to 'com.jcraft.jsch.SftpProgressMonitor'
interface,
public static final long UNKNOWN_SIZE = -1L;
and invoke the following chunk of code in the put method,
if(monitor!=null){
monitor.init(SftpProgressMonitor.PUT,
"-", dst,
SftpProgressMonitor.UNKNOWN_SIZE);
}
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
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than alternatives and 25% more efficient.
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users