org.objectweb.dream.serializator
Class CodecInputOutputByteArray

java.lang.Object
  extended by org.objectweb.dream.message.codec.CodecInputOutputImpl
      extended by org.objectweb.dream.serializator.CodecInputOutputByteArray
All Implemented Interfaces:
CodecInputOutput, Recyclable

public class CodecInputOutputByteArray
extends CodecInputOutputImpl

An CodecInputOutput that contains a ByteArrayOutputStream.


Field Summary
protected  ByteArrayOutputStream byteArrayOutputStream
           
 
Fields inherited from class org.objectweb.dream.message.codec.CodecInputOutputImpl
input, output
 
Constructor Summary
CodecInputOutputByteArray()
           
 
Method Summary
 byte[] getByteArray()
          Returns the byte array associated to this codec.
 Object getOutput()
           
 void recycle()
           
 
Methods inherited from class org.objectweb.dream.message.codec.CodecInputOutputImpl
getInput, getReference, setInput, setOutput, setReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

byteArrayOutputStream

protected ByteArrayOutputStream byteArrayOutputStream
Constructor Detail

CodecInputOutputByteArray

public CodecInputOutputByteArray()
Method Detail

getByteArray

public byte[] getByteArray()
Returns the byte array associated to this codec.

Returns:
the byte array associated to this codec.

getOutput

public Object getOutput()
                 throws IOException
Specified by:
getOutput in interface CodecInputOutput
Overrides:
getOutput in class CodecInputOutputImpl
Throws:
IOException
See Also:
CodecInputOutput.getOutput()

recycle

public void recycle()
Specified by:
recycle in interface Recyclable
Overrides:
recycle in class CodecInputOutputImpl
See Also:
Recyclable.recycle()


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