SOMA.explorer
Class ExplorerThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--SOMA.explorer.ExplorerThread

public class ExplorerThread
extends java.lang.Thread

Thread che rimane in attesa di input proveniente da un InputStream.

Author:
Livio Profiri

Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ExplorerThread(DirExplorerItem Dir)
          Costruttore in cui si specifica solo il direttorio da esplorare: vengono utilizzati gli stream di sistema e non viene fatta l'echo dei comandi inseriti.
ExplorerThread(DirExplorerItem dir, java.io.InputStream in, java.io.PrintStream out, boolean echo)
          Costruttore in cui si specificano il direttorio da esplorare, un InputStream di ingresso, un PrintStream di uscita e se e' necessario effettuare l'echo dei comandi inseriti in ingresso.
 
Method Summary
 void addExit()
          Aggiunge la voce exit al menu principale.
 void run()
           
 
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, 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

ExplorerThread

public ExplorerThread(DirExplorerItem Dir)
Costruttore in cui si specifica solo il direttorio da esplorare: vengono utilizzati gli stream di sistema e non viene fatta l'echo dei comandi inseriti.

ExplorerThread

public ExplorerThread(DirExplorerItem dir,
                      java.io.InputStream in,
                      java.io.PrintStream out,
                      boolean echo)
Costruttore in cui si specificano il direttorio da esplorare, un InputStream di ingresso, un PrintStream di uscita e se e' necessario effettuare l'echo dei comandi inseriti in ingresso.
Method Detail

addExit

public void addExit()
Aggiunge la voce exit al menu principale. Questa voce termina il thread attuale.

run

public void run()
Overrides:
run in class java.lang.Thread