01: // You can redistribute this software and/or modify it under the terms of
02: // the Ozone Library License version 1 published by ozone-db.org.
03: //
04: // The original code and portions created by SMB are
05: // Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
06: //
07: // $Id: DxKeyData.java,v 1.1 2001/12/18 10:31:30 per_nyfelt Exp $
08:
09: package org.ozoneDB.DxLib;
10:
11: import java.io.*;
12:
13: public final class DxKeyData implements Externalizable {
14:
15: final static long serialVersionUID = 1;
16:
17: public Object key;
18:
19: public Object data;
20:
21: public DxKeyData next;
22:
23: public DxKeyData() {
24: }
25:
26: public DxKeyData(Object _key, Object _data) {
27: key = _key;
28: data = _data;
29: }
30:
31: public void set(Object _key, Object _data) {
32: key = _key;
33: data = _data;
34: }
35:
36: public void writeExternal(ObjectOutput out) throws IOException {
37: out.writeObject(key);
38: out.writeObject(data);
39: }
40:
41: public void readExternal(ObjectInput in) throws IOException,
42: ClassNotFoundException {
43: key = in.readObject();
44: data = in.readObject();
45: next = null;
46: }
47:
48: }
|