jtge.engine.io
Class AsynchronousInput

java.lang.Object
  extended byjava.lang.Thread
      extended byjtge.engine.io.AsynchronousInput
All Implemented Interfaces:
IInput, java.lang.Runnable

public class AsynchronousInput
extends java.lang.Thread
implements IInput

Wraps an input to provide an asynchronous reading.

Version:
$Revision: 1.4 $ $Date: 2005/09/10 23:59:42 $
Author:
Mathieu Champlon

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AsynchronousInput(IInput input)
          Create an asynchronous input.
 
Method Summary
 void close()
          Close the input.
 boolean isClosed()
          Check whether the input is closed or not.
 void read()
          Read commands.
 void run()
          
 
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
 

Constructor Detail

AsynchronousInput

public AsynchronousInput(IInput input)
Create an asynchronous input.

Parameters:
input - the input to wrap
Method Detail

run

public final void run()

Specified by:
run in interface java.lang.Runnable

read

public final void read()
Read commands.

Specified by:
read in interface IInput

close

public final void close()
Close the input.

Specified by:
close in interface IInput

isClosed

public final boolean isClosed()
Check whether the input is closed or not.

Specified by:
isClosed in interface IInput
Returns:
current close status.


Copyright © 2003-2005 . All Rights Reserved.