org.mycore.datamodel.ifs2
Class MCRVirtualNode

java.lang.Object
  extended by org.mycore.datamodel.ifs2.MCRNode
      extended by org.mycore.datamodel.ifs2.MCRVirtualNode

public class MCRVirtualNode
extends MCRNode

A virtual node in a file collection, which may be a child node of a container file type like zip or tar. Such files can be browsed and read using this node type.

Author:
Frank Lützenkirchen

Field Summary
 
Fields inherited from class org.mycore.datamodel.ifs2.MCRNode
fo, parent
 
Constructor Summary
protected MCRVirtualNode(MCRNode parent, org.apache.commons.vfs.FileObject fo)
          Creates a new virtual node
 
Method Summary
protected  MCRVirtualNode buildChildNode(org.apache.commons.vfs.FileObject fo)
          Returns a virtual node that is a child of this virtual node.
 
Methods inherited from class org.mycore.datamodel.ifs2.MCRNode
getChild, getChildren, getContent, getLastModified, getName, getNodeByPath, getNumChildren, getParent, getPath, getRandomAccessContent, getRoot, getSize, hasChildren, isDirectory, isFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MCRVirtualNode

protected MCRVirtualNode(MCRNode parent,
                         org.apache.commons.vfs.FileObject fo)
Creates a new virtual node

Parameters:
parent - the parent node containing this node
fo - the file object in Apache VFS representing this node
Method Detail

buildChildNode

protected MCRVirtualNode buildChildNode(org.apache.commons.vfs.FileObject fo)
                                 throws Exception
Returns a virtual node that is a child of this virtual node.

Specified by:
buildChildNode in class MCRNode
Parameters:
fo - the FileObject representing the child in the underlying filesystem
Returns:
the child node
Throws:
Exception