org.objectweb.perseus.fos.api

Interface FosStructure

public interface FosStructure

Defines the object for reading/writing the content of a persistent object from/to its associated file within the File Object Store. This interface is implemented by the FOS user that must provide it in order to define the exact storage structure of stored objects.

Author:
S. Chassande-Barrioz, P. D?chamboux

Method Summary

void
readFile(ObjectInputStream ois, FosAccess conn, Object ctxt)
Reads the content of a persistent object from the file represented by the given ObjectInputStream.
void
writeFile(ObjectOutputStream oos, FosAccess conn, Object ctxt)
Writes the content of a persistent object to the file represented by the given ObjectOutputStream.

Method Details

readFile

public void readFile(ObjectInputStream ois,
                     FosAccess conn,
                     Object ctxt)
            throws Exception
Reads the content of a persistent object from the file represented by the given ObjectInputStream.

Parameters:
ois - The ObjectInputStream representing the file from which to read.
conn - The connection used to access the File Object Store.


writeFile

public void writeFile(ObjectOutputStream oos,
                      FosAccess conn,
                      Object ctxt)
            throws Exception
Writes the content of a persistent object to the file represented by the given ObjectOutputStream.

Parameters:
oos - The ObjectOutputStream representing the file to which to write.
conn - The connection used to access the File Object Store.


Copyright © 2000-2002 France Telecom S.A., INRIA, IMAG-LSR All Rights Reserved.