util
Class ThreadLister

java.lang.Object
  extended by util.ThreadLister

public class ThreadLister
extends Object

This example is from the book _Java in a Nutshell_ by David Flanagan. Written by David Flanagan. Copyright (c) 1996 O'Reilly & Associates. You may study, use, modify, and distribute this example for any purpose. This example is provided WITHOUT WARRANTY either expressed or implied.


Constructor Summary
ThreadLister()
           
 
Method Summary
private static void list_group(PrintStream out, ThreadGroup g, String indent)
           
static void listAllThreads(PrintStream out)
           
static void main(String[] args)
           
private static void print_thread_info(PrintStream out, Thread t, String indent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLister

public ThreadLister()
Method Detail

print_thread_info

private static void print_thread_info(PrintStream out,
                                      Thread t,
                                      String indent)
Parameters:
out -
t -
indent -

list_group

private static void list_group(PrintStream out,
                               ThreadGroup g,
                               String indent)
Parameters:
out -
g -
indent -

listAllThreads

public static void listAllThreads(PrintStream out)
Parameters:
out -

main

public static void main(String[] args)
Parameters:
args -