KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > internal > indexing > ObjectStorePage


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.core.internal.indexing;
12
13 abstract class ObjectStorePage extends Page {
14
15     public static final int SIZE = 8192;
16
17     public ObjectStorePage(int pageNumber, byte[] buffer, PageStore pageStore) {
18         super(pageNumber, pageStore);
19         pageBuffer = new Buffer(SIZE);
20         pageBuffer.copyFrom(buffer);
21         materialize();
22     }
23     protected abstract void materialize();
24 }
25
Popular Tags