jtge.engine.io
Class XStreamOutput

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

public class XStreamOutput
extends java.lang.Object
implements IOutputImp

Implements an output implementation based on the XStream library.

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

Constructor Summary
XStreamOutput(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

XStreamOutput

public XStreamOutput(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.