gnu.inet.ftp
Class PassivePutter

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--gnu.inet.ftp.Putter
              |
              +--gnu.inet.ftp.PassivePutter
All Implemented Interfaces:
ConnectionEventSource, java.lang.Runnable, TransferEventSource

public class PassivePutter
extends Putter

This class implements an FTP-style data connection server thread for PUTing files/data passively to the server.

This class is used internally to the FtpClient class.


Fields inherited from class gnu.inet.ftp.Putter
BUFFER_SIZE, cancelled, connectionListeners, istream, mode, transferListeners, type
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
PassivePutter(java.io.InputStream in, PassiveConnection connection)
          Create a new PassivePutter thread given the input stream data source and PssiveParameters to use to connect to the server.
 
Method Summary
 void run()
          implements thread behavior.
 
Methods inherited from class gnu.inet.ftp.Putter
addConnectionListener, addConnectionListeners, addTransferListener, addTransferListeners, cancel, removeConnectionListener, removeTransferListener, setDebug, setInputStream, setMode, setType, signalConnectionClosed, signalConnectionFailed, signalConnectionOpened, signalTransferCompleted, signalTransfered, signalTransferStarted, start
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PassivePutter

public PassivePutter(java.io.InputStream in,
                     PassiveConnection connection)
              throws java.io.IOException
Create a new PassivePutter thread given the input stream data source and PssiveParameters to use to connect to the server.
Parameters:
in - data source
connection - the passive connection to the server
Throws:
java.io.IOException - io error
Method Detail

run

public void run()
implements thread behavior. Put data to server using given parameters.
Overrides:
run in class java.lang.Thread