jtge.engine.io
Interface IInputImp

All Known Implementing Classes:
ObjectInput, XStreamInput

public interface IInputImp

Defines an input implementation.

This interface acts as the implementor in the bridge pattern.

Implementation classes must be thread-safe.

Version:
$Revision: 1.4 $ $Date: 2005/09/10 11:26:47 $
Author:
Mathieu Champlon
See Also:
Input

Method Summary
 void close()
          Close the input if needed.
 boolean isClosed()
          Check whether the input is closed or not.
 ICommand read()
          Read one command.
 

Method Detail

read

public ICommand read()
Read one command.

This method should block until the reading is done.
The input must be closed when the method returns null.

Returns:
read command or null if the input is closed

close

public void close()
Close the input if needed.


isClosed

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

Returns:
current close status.


Copyright © 2003-2005 . All Rights Reserved.