wtanaka.praya.zhongwen
Class ZhongWenWatcher

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--wtanaka.praya.zhongwen.ZhongWenWatcher
All Implemented Interfaces:
java.lang.Runnable

public class ZhongWenWatcher
extends java.lang.Thread

This is the thread that polls the webpage looking for messages.

Return to Sourceforge or the Praya Homepage

Version:
$Name: $ $Date: 2001/10/22 06:27:02 $
Author:
$Author: wtanaka $

Field Summary
private static java.lang.Object DEFAULT_MEMENTO
           
private  java.lang.String m_mostRecentKnownLine
           
private  boolean m_shouldBeRunning
           
private  Protocol m_source
           
static int SLEEP_TIME
           
 
Fields inherited from class java.lang.Thread
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ
 
Constructor Summary
ZhongWenWatcher(Protocol source)
           
ZhongWenWatcher(Protocol source, java.lang.Object memento)
           
 
Method Summary
 void abort()
           
 java.lang.Object getMemento()
           
private static java.lang.String getURL()
           
 void run()
           
private static java.lang.String stripTags(java.lang.String input)
           
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SLEEP_TIME

public static final int SLEEP_TIME

m_shouldBeRunning

private volatile boolean m_shouldBeRunning

m_source

private Protocol m_source

DEFAULT_MEMENTO

private static final java.lang.Object DEFAULT_MEMENTO

m_mostRecentKnownLine

private java.lang.String m_mostRecentKnownLine
Constructor Detail

ZhongWenWatcher

public ZhongWenWatcher(Protocol source,
                       java.lang.Object memento)

ZhongWenWatcher

public ZhongWenWatcher(Protocol source)
Method Detail

getURL

private static java.lang.String getURL()

abort

public void abort()

getMemento

public java.lang.Object getMemento()

stripTags

private static java.lang.String stripTags(java.lang.String input)

run

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