KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sleepycat > persist > impl > Reader


1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 2002,2006 Oracle. All rights reserved.
5  *
6  * $Id: Reader.java,v 1.3 2006/10/30 21:14:32 bostic Exp $
7  */

8
9 package com.sleepycat.persist.impl;
10
11 import java.io.Serializable JavaDoc;
12
13 /**
14  * Interface to the "read object" methods of the Format class. For the
15  * latest version format, the Format object provides the implementation of
16  * these methods. For an older version format, an evolver object implements
17  * this interface to convert from the old to new format.
18  *
19  * See {@link Format} for a description of each method.
20  * @author Mark Hayes
21  */

22 interface Reader extends Serializable JavaDoc {
23
24     void initializeReader(Catalog catalog, Format oldFormat);
25
26     Object JavaDoc newInstance(EntityInput input, boolean rawAccess);
27
28     void readPriKey(Object JavaDoc o, EntityInput input, boolean rawAccess);
29
30     Object JavaDoc readObject(Object JavaDoc o, EntityInput input, boolean rawAccess);
31 }
32
Popular Tags