shell.app
Class cp

java.lang.Object
  |
  +--shell.Command
        |
        +--shell.ShellCommand
              |
              +--shell.app.cp
All Implemented Interfaces:
Executable, java.lang.Runnable, ShellExecutable

public class cp
extends ShellCommand
implements ShellExecutable


Field Summary
 
Fields inherited from class shell.Command
in, out
 
Constructor Summary
cp()
           
 
Method Summary
 void copy(java.io.File source, java.io.File destination)
           
 void copyFile(java.io.File src, java.io.File dest)
           
 void doRun()
           
 void recursiveCopy(java.io.File subdir, java.io.File dest)
           
 void setArgs(java.util.Vector args, ProcessController pc)
           
 void setArgs(java.util.Vector args, ProcessController pc, java.io.PrintStream o)
           
 
Methods inherited from class shell.Command
addActiveSwitch, addSwitch, addThreadListener, containsSwitch, equals, equals, getActive, getId, getLock, getName, getOutStream, getReader, getSwitch, isPipeable, lock, processSwitches, removeThreadListener, run, setActive, setArgs, setArgs, setId, setIncomming, setInputStream, setLock, setOutputStream, setOutStream, stillIncomming, unlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface shell.Executable
addActiveSwitch, addSwitch, addThreadListener, containsSwitch, equals, equals, getActive, getId, getName, getOutStream, getReader, getSwitch, isPipeable, lock, processSwitches, removeThreadListener, run, setActive, setArgs, setArgs, setId, setIncomming, setInputStream, setLock, setOutputStream, setOutStream, stillIncomming, unlock
 

Constructor Detail

cp

public cp()
Method Detail

setArgs

public void setArgs(java.util.Vector args,
                    ProcessController pc)

setArgs

public void setArgs(java.util.Vector args,
                    ProcessController pc,
                    java.io.PrintStream o)

doRun

public void doRun()
Specified by:
doRun in class Command

copy

public void copy(java.io.File source,
                 java.io.File destination)
          throws java.io.IOException
java.io.IOException

recursiveCopy

public void recursiveCopy(java.io.File subdir,
                          java.io.File dest)
                   throws java.io.IOException
java.io.IOException

copyFile

public void copyFile(java.io.File src,
                     java.io.File dest)
              throws java.io.IOException
java.io.IOException