KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > DxLib > DxDiskHashNodeBranch


1 // You can redistribute this software and/or modify it under the terms of
2
// the Ozone Library License version 1 published by ozone-db.org.
3
//
4
// The original code and portions created by SMB are
5
// Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
6
//
7
// $Id: DxDiskHashNodeBranch.java,v 1.1 2001/12/18 10:31:30 per_nyfelt Exp $
8

9 package org.ozoneDB.DxLib;
10
11 import java.io.*;
12
13
14 /**
15  * Tied with referens to a subTable without a key and without a date
16  * @author <a HREF="http://www.softwarebuero.de/">SMB</a>
17  * @author <a HREF="http://www.medium.net/">Medium.net</a>
18  */

19 public class DxDiskHashNodeBranch extends DxDiskHashNode implements Externalizable {
20     
21     final static long serialVersionUID = 1;
22
23     protected DxDiskHashMap grandParent;
24     protected DxDiskSubTable subTable;
25     
26     
27     public DxDiskHashNodeBranch(DxDiskHashMap grandParent) {
28         this.grandParent = grandParent;
29     }
30     
31     
32     public void empty() {
33         subTable = null;
34     }
35     
36     
37     public void writeExternal( ObjectOutput out ) throws IOException {
38         subTable.writeExternal( out );
39     }
40     
41     
42     public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException JavaDoc {
43         subTable = new DxDiskSubTable(grandParent);
44         subTable.readExternal( in );
45     }
46 }
47
Popular Tags