org.mmbase.module.core
Class ByteFieldContainer

java.lang.Object
  extended byorg.mmbase.module.core.ByteFieldContainer

public class ByteFieldContainer
extends java.lang.Object

MMObjectNodes can contain Binary data. These BYTE fields can be retrieved, byt the node does not store them internally - nodes are cached, and caching large amounts of binary data is bad for performance. However, some classes keep a separate cache for binaries (i.e. Images). This class is meant to hold byte arrays while simultaneously keep data as to which object it is part of. This allows for caching and passing binary values between functions without loosing track of which image it is part of.

Since:
MMBase-1.7
Version:
$Id: ByteFieldContainer.java,v 1.3 2004/03/10 15:02:42 michiel Exp $
Author:
Pierre van Rooden

Field Summary
 int number
           
 byte[] value
           
 
Constructor Summary
ByteFieldContainer(int number, byte[] value)
          Constructor of this container class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

number

public int number

value

public byte[] value
Constructor Detail

ByteFieldContainer

public ByteFieldContainer(int number,
                          byte[] value)
Constructor of this container class.

Parameters:
number - The node number of the node where the byte[] is belonging to, or -1 if the byte array is not yet associated with a node.
value - The byte array which this container is wrapping.


MMBase build 1.7.1.20041002