Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

FTreeP
Class FTPDataHost  view FTPDataHost download FTPDataHost.java

java.lang.Object
  extended byjava.lang.Thread
      extended byFTreeP.FTPDataHost
All Implemented Interfaces:
java.lang.Runnable

class FTPDataHost
extends java.lang.Thread


Nested Class Summary
 
Nested classes inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  java.io.BufferedReader cmd_in
           
private  java.io.BufferedWriter cmd_out
           
private  java.net.Socket command_socket
           
private  FTPConsole console
           
private  java.net.Socket data_socket
           
private  boolean quit
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
FTPDataHost(java.net.Socket command_socket)
           
 
Method Summary
private  void createGUIElements()
           
private  void cwd(java.lang.String directory)
           
private  void destroyGUIElements()
           
private  void interpret(java.lang.String cmd)
           
private  void list(java.lang.String directory)
           
private  void pasv()
           
private  void port(java.lang.String port_text)
           
private  void quit()
           
private  java.lang.String resolveToLocal(java.lang.String path)
           
 void respond(java.io.BufferedWriter cmd_out, int response_code, java.lang.String message)
           
private  void retr(java.lang.String file, java.lang.String type)
           
 void run()
          The method of Thread that will be run if there is no Runnable object associated with the Thread.
private  void size(java.lang.String file)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

command_socket

private java.net.Socket command_socket

data_socket

private java.net.Socket data_socket

cmd_in

private java.io.BufferedReader cmd_in

cmd_out

private java.io.BufferedWriter cmd_out

quit

private boolean quit

console

private FTPConsole console
Constructor Detail

FTPDataHost

public FTPDataHost(java.net.Socket command_socket)
            throws java.lang.Exception
Method Detail

run

public void run()
Description copied from class: java.lang.Thread
The method of Thread that will be run if there is no Runnable object associated with the Thread. Thread's implementation does nothing at all.


interpret

private void interpret(java.lang.String cmd)
                throws java.lang.Exception

resolveToLocal

private java.lang.String resolveToLocal(java.lang.String path)
                                 throws java.lang.Exception

respond

public void respond(java.io.BufferedWriter cmd_out,
                    int response_code,
                    java.lang.String message)
             throws java.lang.Exception

createGUIElements

private void createGUIElements()

destroyGUIElements

private void destroyGUIElements()

cwd

private void cwd(java.lang.String directory)
          throws java.lang.Exception

list

private void list(java.lang.String directory)
           throws java.lang.Exception

pasv

private void pasv()
           throws java.lang.Exception

port

private void port(java.lang.String port_text)
           throws java.lang.Exception

quit

private void quit()
           throws java.lang.Exception

retr

private void retr(java.lang.String file,
                  java.lang.String type)
           throws java.lang.Exception

size

private void size(java.lang.String file)
           throws java.lang.Exception