org.apache.jdo.impl.fostore
Class Block
java.lang.Object
org.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
|
|
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 |
data
private byte[] data
Block
Block(FOStoreInput in,
int length)
Block
public Block()
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()