net.sourceforge.cvsgrab.util
Class MaskingThread

java.lang.Object
  extended by java.lang.Thread
      extended by net.sourceforge.cvsgrab.util.MaskingThread
All Implemented Interfaces:
Runnable

public class MaskingThread
extends Thread

This class attempts to erase characters echoed to the console.

Author:
Qusay H. Mahmoud

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
MaskingThread(String prompt)
          Constructor for MaskingThread
 
Method Summary
 void run()
          Begin masking until asked to stop.
 void stopMasking()
          Instruct the thread to stop masking.
 
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

MaskingThread

public MaskingThread(String prompt)
Constructor for MaskingThread

Parameters:
prompt - The prompt displayed to the user
Method Detail

run

public void run()
Begin masking until asked to stop.

Specified by:
run in interface Runnable
Overrides:
run in class Thread

stopMasking

public void stopMasking()
Instruct the thread to stop masking.



Copyright © 2002-2005 Ludovic Claude. All Rights Reserved.