| java.lang.Object org.mmbase.module.core.ByteFieldContainer
ByteFieldContainer | public class ByteFieldContainer (Code) | | 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.
author: Pierre van Rooden version: $Id: ByteFieldContainer.java,v 1.4 2005/10/02 16:30:00 michiel Exp $ since: MMBase-1.7 |
Constructor Summary | |
public | ByteFieldContainer(int number, byte[] value) Constructor of this container class. |
value | public byte[] value(Code) | | |
ByteFieldContainer | public ByteFieldContainer(int number, byte[] value)(Code) | | 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. Parameters: value - The byte array which this container is wrapping. |
|
|