org.objectweb.dream.message.codec
Interface CodecInputOutput

All Known Implementing Classes:
CodecInputOutputImpl

public interface CodecInputOutput

Gathers an input and an output used by MessageCodec.


Method Summary
 Object getInput()
          Returns an input that can be used to read data to decode.
 Object getOutput()
          Returns an output that can be used to write encoded data.
 void setInput(Object input)
          Set the input.
 void setOutput(Object output)
          Set the output.
 

Method Detail

getInput

Object getInput()
                throws IOException
Returns an input that can be used to read data to decode.

Returns:
an input.
Throws:
IOException - if the input can't be created.

setInput

void setInput(Object input)
Set the input. This is usefull for MessageCodecthat use specialized input. If this object is used to decode another message, the codec can reuse its specialized input.

Parameters:
input - the new input.

getOutput

Object getOutput()
                 throws IOException
Returns an output that can be used to write encoded data.

Returns:
an output.
Throws:
IOException - if the output can't be created.

setOutput

void setOutput(Object output)
Set the output. This is usefull for MessageCodecthat use specialized output. If this object is used to decode another message, the codec can reuse its specialized output.

Parameters:
output - the new output.


Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.