jtge.engine.io
Class InputOutputFactory

java.lang.Object
  extended byjtge.engine.io.InputOutputFactory
All Implemented Interfaces:
IInputOutputFactory

public class InputOutputFactory
extends java.lang.Object
implements IInputOutputFactory

Implements an input-output factory.

Version:
$Revision: 1.2 $ $Date: 2005/08/26 18:09:36 $
Author:
Mathieu Champlon

Constructor Summary
InputOutputFactory(IConsumer consumer, IDisconnectionObserver observer, IInputOutputImpFactory factory)
          Create a factory for inputs and outputs.
 
Method Summary
 IInput create(java.io.InputStream stream)
          Wrap a stream within an input.
 IOutput create(java.io.OutputStream stream)
          Wrap a stream within an output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputOutputFactory

public InputOutputFactory(IConsumer consumer,
                          IDisconnectionObserver observer,
                          IInputOutputImpFactory factory)
Create a factory for inputs and outputs.

Parameters:
consumer - the consumer to send read commands to
observer - the disconnection observer
factory - the input-output implementation factory
Method Detail

create

public final IInput create(java.io.InputStream stream)
Wrap a stream within an input.

Specified by:
create in interface IInputOutputFactory
Parameters:
stream - the input stream to wrap
Returns:
a new input

create

public final IOutput create(java.io.OutputStream stream)
Wrap a stream within an output.

Specified by:
create in interface IInputOutputFactory
Parameters:
stream - the output stream to wrap
Returns:
a new output


Copyright © 2003-2005 . All Rights Reserved.