org.apache.jdo.impl.fostore
Class Block

java.lang.Object
  extended byorg.apache.jdo.impl.fostore.Block
All Implemented Interfaces:
org.netbeans.mdr.persistence.Streamable

public class Block
extends java.lang.Object
implements org.netbeans.mdr.persistence.Streamable

Represents an object stored in the database as a semi-opaque value. While it has no methods which allow interesting access to itself, the store has metadata which describes its contents.

This class is public so that it can be used as a Streamable and stored in the database.

Author:
Dave Bristor

Field Summary
private  byte[] data
           
 
Constructor Summary
  Block()
           
(package private) Block(FOStoreInput in, int length)
           
 
Method Summary
 void dump()
           
(package private)  byte[] getData()
           
 void read(java.io.InputStream is)
           
 void write(java.io.OutputStream os)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

private byte[] data
Constructor Detail

Block

Block(FOStoreInput in,
      int length)

Block

public Block()
Method Detail

getData

byte[] getData()

write

public void write(java.io.OutputStream os)
           throws org.netbeans.mdr.persistence.StorageException
Specified by:
write in interface org.netbeans.mdr.persistence.Streamable
Throws:
org.netbeans.mdr.persistence.StorageException

read

public void read(java.io.InputStream is)
          throws org.netbeans.mdr.persistence.StorageException
Specified by:
read in interface org.netbeans.mdr.persistence.Streamable
Throws:
org.netbeans.mdr.persistence.StorageException

dump

public void dump()