Hi,
I use JSCH API and i need to stream the ls method, so to implement this i need
to return an Iterator.
Current implementation===============
Vector< ? > vFiles = m_cSftpChannel.ls( strRemotePath );for ( int i = 0; i <
vFiles.size(); i++ ){ ...}
Needed implementation===============
int quantityRequested = 100;Iterator< ? > itRemoteFiles =
m_cSftpChannel.ListFiles( sDirectory );while( itRemoteFiles.hasNext() ){ //
Returns an array of at most quantityRequested // objects starting at this
object's internal iterator's current position. Object[] alLsEntry =
itRemoteFiles.next( quantityRequested ); ...}
I have started the implementation of this feature, if you have any suggestion
or an implementation of this feature please do not hesitate to contact me.
Regards.
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users