SOMA.explorer
Class ExplorerThread

java.lang.Object
  extended byjava.lang.Thread
      extended bySOMA.explorer.ExplorerThread
All Implemented Interfaces:
java.lang.Runnable

public class ExplorerThread
extends java.lang.Thread

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

Author:
Livio Profiri

Field Summary
(package private)  java.io.BufferedReader brIn
           
(package private)  boolean Continue
           
(package private)  DirExplorerItem Dir
           
(package private)  boolean echo
           
(package private)  java.io.PrintStream out
           
(package private)  DirExplorerItem RootDir
           
 
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.
ExplorerThread(java.lang.ThreadGroup threadGroup, 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, se e' necessario effettuare l'echo dei comandi inseriti in ingresso ed il ThreadGroup di appartenenza.
 
Method Summary
 void addExit()
          Aggiunge la voce exit al menu principale.
 void run()
           
 void Stop()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, 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
 

Field Detail

out

java.io.PrintStream out

brIn

java.io.BufferedReader brIn

Continue

boolean Continue

Dir

DirExplorerItem Dir

RootDir

DirExplorerItem RootDir

echo

boolean echo
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.


ExplorerThread

public ExplorerThread(java.lang.ThreadGroup threadGroup,
                      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, se e' necessario effettuare l'echo dei comandi inseriti in ingresso ed il ThreadGroup di appartenenza.

Method Detail

addExit

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


Stop

public void Stop()

run

public void run()


Copyright © 2004 Luca Foschini