jtge.engine.io
Class ObjectOutput

java.lang.Object
  extended byjtge.engine.io.ObjectOutput
All Implemented Interfaces:
IOutputImp

public class ObjectOutput
extends java.lang.Object
implements IOutputImp

Implements an output implementation based on object serialization.

Version:
$Revision: 1.7 $ $Date: 2005/09/10 11:26:47 $
Author:
Mathieu Champlon
See Also:
Object Serialization Specification, Section 3, Object AbstractOutput Classes

Constructor Summary
ObjectOutput(java.io.OutputStream stream)
          Create an output.
 
Method Summary
 void close()
          Close the input if needed.
 boolean isClosed()
          Check whether the output is closed or not.
 void write(ICommand command)
          Write one command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectOutput

public ObjectOutput(java.io.OutputStream stream)
Create an output.

Parameters:
stream - the stream to read data from
Method Detail

write

public final void write(ICommand command)
Write one command.

Specified by:
write in interface IOutputImp
Parameters:
command - the command to write

close

public final void close()
Close the input if needed.

Specified by:
close in interface IOutputImp

isClosed

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

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


Copyright © 2003-2005 . All Rights Reserved.