File Stores Example Code

These examples demonstrate aspects of streaming and file stores.

Download

Download the examples:

WriteDirectFS.zip , WritePermFS1.zip and WritePermFS2.zip

Download the additional files required for all the examples: CommonFramework.zip .

WriteDirectFS: externalising a network of objects to a direct file store

Example code

Click: browse to view the example code.

View the additional files: CommonFramework .

Description

This example externalizes a network of objects to a direct file store and then internalizes them again. It demonstrates the persistence of a direct file store and the idea of the root stream.

Class summary

WritePermFS1: externalising a network of objects to a permanent file store

Example code

Click: browse to view the example code.

Description

This example constructs and writes a network of objects to a permanent file store. Each object is then loaded back in, one at a time, its content displayed at the console and then destroyed.

Class summary

WritePermFS2: externalising a network of objects to a permanent file store

Example code

Click: browse to view the example code.

Description

This example shows further use of a permanent file store.

Class summary