org.planx.xmlstore.koala.io
Interface NodeFileSystem<R extends Locatable>

All Superinterfaces:
FileSystem, Loader<R,SystemNode>
All Known Implementing Classes:
CacheNodeFileSystem, MemoryNodeFileSystem, NodeFileSystemImpl

public interface NodeFileSystem<R extends Locatable>
extends FileSystem, Loader<R,SystemNode>

A FileSystem that has an associated IOPolicy and provides save and load methods for nodes.

Author:
Thomas Ambus

Method Summary
 IOPolicy<R> getPolicy()
          Returns the IOPolicy associated with this NodeFileSystem.
 SystemNode load(Locator loc, RelativeDualReference<Locator,R> ref)
          Loads a node from the file system.
 SystemNode load(R ref)
          Loads a node from the file system.
 Locator save(SystemNode node)
          Saves a node in the file system returning a Locator to it.
 
Methods inherited from interface org.planx.io.FileSystem
all, allocate, allocate, clear, clearModified, close, free, getData, getMeta, id, isContained, isModified, isReadOnly, setMeta, setReadOnly, size
 

Method Detail

getPolicy

IOPolicy<R> getPolicy()
Returns the IOPolicy associated with this NodeFileSystem.


load

SystemNode load(R ref)
                throws IOException
Loads a node from the file system.

Specified by:
load in interface Loader<R extends Locatable,SystemNode>
Throws:
IOException

load

SystemNode load(Locator loc,
                RelativeDualReference<Locator,R> ref)
                throws IOException
Loads a node from the file system.

Throws:
IOException

save

Locator save(SystemNode node)
             throws IOException
Saves a node in the file system returning a Locator to it.

Throws:
IOException


Copyright © 2004-2005 Plan-X. All Rights Reserved.