• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/db-4.7.25.NC/java/src/com/sleepycat/persist/impl/
1/*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 2002,2008 Oracle.  All rights reserved.
5 *
6 * $Id: Reader.java,v 1.1 2008/02/07 17:12:27 mark Exp $
7 */
8
9package com.sleepycat.persist.impl;
10
11import java.io.Serializable;
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 */
22interface Reader extends Serializable {
23
24    void initializeReader(Catalog catalog, int initVersion, Format oldFormat);
25
26    Object newInstance(EntityInput input, boolean rawAccess);
27
28    void readPriKey(Object o, EntityInput input, boolean rawAccess);
29
30    Object readObject(Object o, EntityInput input, boolean rawAccess);
31}
32