01: /*
02:
03: This software is OSI Certified Open Source Software.
04: OSI Certified is a certification mark of the Open Source Initiative.
05:
06: The license (Mozilla version 1.0) can be read at the MMBase site.
07: See http://www.MMBase.org/license
08:
09: */
10: package org.mmbase.module.core;
11:
12: /**
13: * MMObjectNodes can contain Binary data. These BYTE fields can be
14: * retrieved, byt the node does not store them internally - nodes are cached, and
15: * caching large amounts of binary data is bad for performance.
16: * However, some classes keep a separate cache for binaries (i.e. Images).
17: * This class is meant to hold byte arrays while simultaneously keep data as to
18: * which object it is part of. This allows for caching and passing binary values
19: * between functions without loosing track of which image it is part of.
20: *
21: * @author Pierre van Rooden
22: * @version $Id: ByteFieldContainer.java,v 1.4 2005/10/02 16:30:00 michiel Exp $
23: * @since MMBase-1.7
24: * @deprecated
25: */
26: public class ByteFieldContainer {
27: public int number = -1;
28: public byte[] value = null;
29:
30: /**
31: * Constructor of this container class.
32: * @param 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.
33: * @param value The byte array which this container is wrapping.
34: */
35: public ByteFieldContainer(int number, byte[] value) {
36: this.number = number;
37: this.value = value;
38: }
39:
40: }
|