jtge.engine.io
Class Input

java.lang.Object
  extended byjtge.engine.handler.AbstractProducer
      extended byjtge.engine.io.Input
All Implemented Interfaces:
IInput

public class Input
extends AbstractProducer
implements IInput

Handles the input logics.

This class acts as the abstraction in the bridge pattern.

Version:
$Revision: 1.12 $ $Date: 2005/09/10 11:26:47 $
Author:
Mathieu Champlon

Constructor Summary
Input(IConsumer consumer, IDisconnectionObserver observer, IInputImp input)
          Create an input.
 
Method Summary
 void close()
          Close the input.
 boolean isClosed()
          Check whether the input is closed or not.
 void read()
          Read commands.
 
Methods inherited from class jtge.engine.handler.AbstractProducer
forward
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Input

public Input(IConsumer consumer,
             IDisconnectionObserver observer,
             IInputImp input)
Create an input.

Parameters:
consumer - the consumer to forward the read commands to
observer - the observer
input - the input implementation
Method Detail

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.