Main Page | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Related Pages

MultipleEntry.java

00001 /*-
00002  * See the file LICENSE for redistribution information.
00003  *
00004  * Copyright (c) 2002-2005
00005  *      Sleepycat Software.  All rights reserved.
00006  *
00007  * $Id: MultipleEntry.java,v 12.2 2005/06/16 20:23:03 bostic Exp $
00008  */
00009 
00010 package com.sleepycat.db;
00011 
00012 import com.sleepycat.db.internal.DbConstants;
00013 
00014 public abstract class MultipleEntry extends DatabaseEntry {
00015     protected int pos;
00016 
00017     protected MultipleEntry(final byte[] data, final int offset, final int size) {
00018         super(data, offset, size);
00019         setUserBuffer((data != null) ? (data.length - offset) : 0, true);
00020         this.flags |= DbConstants.DB_DBT_USERMEM;
00021     }
00022 
00023     public void setUserBuffer(final int length, final boolean usermem) {
00024         if (!usermem)
00025             throw new IllegalArgumentException("User buffer required");
00026         super.setUserBuffer(length, usermem);
00027     }
00028 }

Generated on Sun Dec 25 12:14:33 2005 for Berkeley DB 4.4.16 by  doxygen 1.4.2