01: // You can redistribute this software and/or modify it under the terms of
02: // the Ozone Library License version 1 published by ozone-db.org.
03: //
04: // The original code and portions created by SMB are
05: // Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
06: //
07: // $Id: BLOBContainer.java,v 1.1 2001/12/18 10:31:30 per_nyfelt Exp $
08:
09: package org.ozoneDB.blob;
10:
11: import org.ozoneDB.*;
12: import java.io.*;
13:
14: /**
15: * The BLOB implementation. It holds the data in several BLOB pages.
16: *
17: *
18: * @author <a href="http://www.softwarebuero.de/">SMB</a>
19: * @version $Revision: 1.1 $Date: 2001/12/18 10:31:30 $
20: */
21: public interface BLOBContainer extends OzoneRemote {
22:
23: public void init(int _pageSize); //update
24:
25: public void write(int index, byte[] b, int off, int len)
26: throws Exception; //update
27:
28: public byte[] read(int index, int len) throws Exception;
29:
30: public int available(int index) throws Exception;
31: }
|