org.mmbase.module.core
Class ByteFieldContainer

java.lang.Object
  extended by org.mmbase.module.core.ByteFieldContainer

Deprecated.

public class ByteFieldContainer
extends 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 34900 2009-05-01 16:29:42Z michiel $
Author:
Pierre van Rooden

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

Field Detail

number

public int number
Deprecated. 

value

public byte[] value
Deprecated. 
Constructor Detail

ByteFieldContainer

public ByteFieldContainer(int number,
                          byte[] value)
Deprecated. 
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 2.0-SNAPSHOT - null