org.objectweb.dream.serializator
Class ByteArrayChunk

java.lang.Object
  extended by org.objectweb.dream.message.AbstractChunk<ByteArrayChunk>
      extended by org.objectweb.dream.serializator.ByteArrayChunk
All Implemented Interfaces:
Externalizable, Serializable, Recyclable

public class ByteArrayChunk
extends AbstractChunk<ByteArrayChunk>

Chunk containing a byte array.

See Also:
Serialized Form

Field Summary
protected  byte[] byteArray
          The byte array.
static String DEFAULT_NAME
          The default name for chunks of this type.
 
Constructor Summary
ByteArrayChunk()
           
 
Method Summary
 byte[] getByteArray()
          Returns the byte array contained in this chunk.
 ByteArrayChunk newChunk()
           
 void readExternal(ObjectInput in)
           
 void recycle()
           
 void setByteArray(byte[] byteArray)
          Sets the byte array contained in this chunk.
 void transfertStateTo(ByteArrayChunk newInstance)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.objectweb.dream.message.AbstractChunk
getReference, setReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_NAME

public static final String DEFAULT_NAME
The default name for chunks of this type.

See Also:
Constant Field Values

byteArray

protected byte[] byteArray
The byte array.

Constructor Detail

ByteArrayChunk

public ByteArrayChunk()
Method Detail

getByteArray

public byte[] getByteArray()
Returns the byte array contained in this chunk.

Returns:
the byte array contained in this chunk.

setByteArray

public void setByteArray(byte[] byteArray)
Sets the byte array contained in this chunk.

Parameters:
byteArray - the array contained in this chunk.

transfertStateTo

public void transfertStateTo(ByteArrayChunk newInstance)
Specified by:
transfertStateTo in class AbstractChunk<ByteArrayChunk>
See Also:
AbstractChunk.transfertStateTo(AbstractChunk)

newChunk

public ByteArrayChunk newChunk()
Specified by:
newChunk in class AbstractChunk<ByteArrayChunk>
See Also:
AbstractChunk.newChunk()

recycle

public void recycle()
See Also:
Recyclable.recycle()

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Throws:
IOException
ClassNotFoundException
See Also:
Externalizable.readExternal(java.io.ObjectInput)

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Throws:
IOException
See Also:
Externalizable.writeExternal(java.io.ObjectOutput)


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