| java.lang.Object org.ozoneDB.OzoneObject org.ozoneDB.blob.BLOBContainerImpl
BLOBContainerImpl | public class BLOBContainerImpl extends OzoneObject implements BLOBContainer(Code) | | The BLOB implementation. The data are stored in several BLOBPages. The
data of the BLOB can be accessed through BLOBInOutputStreams.
author: SMB version: $Revision: 1.1 $Date: 2001/12/18 10:31:30 $ |
Method Summary | |
public int | available(int _index) Returns the available bytes of this BLOB beginning at index. | public void | init(int _pageSize) | public void | onDelete() | protected int | pageNum(int index) | protected int | pageOff(int index) | public byte[] | read(int index, int len) | public void | write(int _index, byte[] b, int off, int len) Writes the content of the Array into the BLOB starting at index. |
DEFAULT_PAGE_SIZE | final protected static int DEFAULT_PAGE_SIZE(Code) | | |
debug | protected boolean debug(Code) | | |
pageSize | protected int pageSize(Code) | | |
BLOBContainerImpl | public BLOBContainerImpl()(Code) | | |
available | public int available(int _index) throws Exception(Code) | | Returns the available bytes of this BLOB beginning at index.
NEVER WRITE ON BLOB WHILE EXECUTING THIS METHOD!
Parameters: _index - the startposition the number of available bytes after _index exception: Exception - (some kind of databaseexception ?) |
init | public void init(int _pageSize)(Code) | | |
onDelete | public void onDelete() throws Exception(Code) | | THIS MUST BE CALLED ON DELETE TO KILL ALL REFERENCED BLOBPAGES !
(hope the database does this for me...)
|
pageNum | protected int pageNum(int index)(Code) | | |
pageOff | protected int pageOff(int index)(Code) | | |
write | public void write(int _index, byte[] b, int off, int len) throws Exception(Code) | | Writes the content of the Array into the BLOB starting at index.
Parameters: _index - the write startposition in the BLOB Parameters: b - the bytearray to be stored Parameters: off - the startindex in the bytearray Parameters: len - the number of bytes to be written into the BLOB exception: Exception - |
|
|