com.mindbright.ssh2
Class SSH2SimpleSFTPShell.ProgressBar

java.lang.Object
  extended bycom.mindbright.ssh2.SSH2SimpleSFTPShell.ProgressBar
All Implemented Interfaces:
SSH2SFTP.AsyncListener
Enclosing class:
SSH2SimpleSFTPShell

public static final class SSH2SimpleSFTPShell.ProgressBar
extends java.lang.Object
implements SSH2SFTP.AsyncListener

Class implementing a progress bar which gets printed in a terminal window.


Constructor Summary
SSH2SimpleSFTPShell.ProgressBar(LineReaderTerminal linereader)
           
 
Method Summary
 void progress(long size)
          Gets called periodically during the file transfer.
 void start(long totalSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSH2SimpleSFTPShell.ProgressBar

public SSH2SimpleSFTPShell.ProgressBar(LineReaderTerminal linereader)
Method Detail

start

public void start(long totalSize)

progress

public void progress(long size)
Description copied from interface: SSH2SFTP.AsyncListener
Gets called periodically during the file transfer.

Specified by:
progress in interface SSH2SFTP.AsyncListener
Parameters:
size - How many bytes have been transferred so far