commands
Class cat

java.lang.Object
  extended by java.lang.Thread
      extended by kernel.AbstractProcess
          extended by commands.cat
All Implemented Interfaces:
java.lang.Runnable, IProcess

public class cat
extends AbstractProcess

Concatenates files (defined by the arguments) to the standard output, whereas the argument "-" represents the standard input. If there are no args, it only transfers the data from standard input to the standard output.


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
cat()
           
 
Method Summary
 java.lang.String getHelp()
          Provides full description of the command to be used in the MAN command.
 void realization()
          Realizes the CAT command.
 
Methods inherited from class kernel.AbstractProcess
enableStdIn, equals, exec, getArgs, getCommand, getCurrentPath, getErrOut, getFirstChild, getID, getIn, getKernel, getNext, getOut, getParent, getParentCurrentPath, getParentShell, getPrevious, getServices, init, init, kill, printError, run, setCurrentPath, setErrOut, setFirstChild, setIn, setNext, setOut, setParentCurrentPath, setPrevious, toString
 
Methods inherited from class java.lang.Thread
activeCount, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, checkAccess, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

cat

public cat()
Method Detail

getHelp

public java.lang.String getHelp()
Provides full description of the command to be used in the MAN command.

Returns:
Full description of the command including the syntax.

realization

public void realization()
                 throws AppException
Realizes the CAT command.

Throws:
AppException - Exception caused by an error in the virtual machines manager.