edu.virginia.cs.mng.hypercast.demo
Class MFTP_Text

java.lang.Object
  |
  +--edu.virginia.cs.mng.hypercast.demo.MFTP_Text

public class MFTP_Text
extends java.lang.Object
implements I_MFTPCallBack

This class implements I_MFTPCallBack interface. It provides the command-line interface to send files and receive files. All the available commands can be shown by using "?" command.


Field Summary
(package private)  java.lang.String dirname
           
(package private)  java.io.PrintWriter foutput
           
(package private)  MFTP mftp
           
 
Constructor Summary
(package private) MFTP_Text()
           
 
Method Summary
 void ackInfoarrived(java.lang.String s)
           
static void main(java.lang.String[] args)
           
 void sendDirectory(java.lang.String directoryName)
          Send a direcory with specified directory name;
 void sendFile(java.lang.String fileName, java.lang.String d)
          Send a file with specified file name;
 void start()
           
 void statusInfoarrived(java.lang.String s)
          Print the arrival status information;
private  void usage()
          The command-line help interface;
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

mftp

MFTP mftp

dirname

java.lang.String dirname

foutput

java.io.PrintWriter foutput
Constructor Detail

MFTP_Text

MFTP_Text()
Method Detail

start

public void start()

sendFile

public void sendFile(java.lang.String fileName,
                     java.lang.String d)
Send a file with specified file name;

sendDirectory

public void sendDirectory(java.lang.String directoryName)
Send a direcory with specified directory name;

statusInfoarrived

public void statusInfoarrived(java.lang.String s)
Print the arrival status information;
Specified by:
statusInfoarrived in interface I_MFTPCallBack

ackInfoarrived

public void ackInfoarrived(java.lang.String s)
Specified by:
ackInfoarrived in interface I_MFTPCallBack

usage

private void usage()
The command-line help interface;

main

public static void main(java.lang.String[] args)