lhmc.files
Class CopyTo

java.lang.Object
  extended by java.lang.Thread
      extended by lhmc.files.CopyTo
All Implemented Interfaces:
java.lang.Runnable

public class CopyTo
extends java.lang.Thread

CopyTo is a threaded class that manages the copy of files from remote filesystem (SmbFile) to local filesystem (File) and vice versa. Also manages to copy from remote to remote filesystem or local to local filesystem.

Version:
0.01 20 Jun 2007
Author:
Cristina Roura Claver

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CopyTo(java.io.File srcFile, java.io.File destFile)
          Constructor that creates the input and output stream from source file and destination file.
CopyTo(java.io.File srcFile, SmbFile destFile)
          Constructor that creates the input and output stream from source file and destination smbfile.
CopyTo(SmbFile srcFile, java.io.File destFile)
          Constructor that creates the input and output stream from source smbfile and destination file.
CopyTo(SmbFile srcFile, SmbFile destFile)
          Constructor that creates the source and destination smbfile.
 
Method Summary
 void run()
          Executes the copy of the files.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, 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
 

Constructor Detail

CopyTo

public CopyTo(java.io.File srcFile,
              java.io.File destFile)
Constructor that creates the input and output stream from source file and destination file.

Parameters:
srcFile - the source file.
destFile - the destination file.

CopyTo

public CopyTo(java.io.File srcFile,
              SmbFile destFile)
Constructor that creates the input and output stream from source file and destination smbfile.

Parameters:
srcFile - the source file.
destFile - the destination smbfile.
See Also:
SmbFile

CopyTo

public CopyTo(SmbFile srcFile,
              SmbFile destFile)
Constructor that creates the source and destination smbfile.

Parameters:
srcFile - the source smbfile.
destFile - the destination smbfile.
See Also:
SmbFile

CopyTo

public CopyTo(SmbFile srcFile,
              java.io.File destFile)
Constructor that creates the input and output stream from source smbfile and destination file.

Parameters:
srcFile - the source smbfile.
destFile - the destination file.
See Also:
SmbFile
Method Detail

run

public void run()
Executes the copy of the files.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread