Class ChangeRootFileSystemWrapperImpl

  • All Implemented Interfaces:
    org.refcodes.component.Component, org.refcodes.component.Destroyable, FileSystem

    public class ChangeRootFileSystemWrapperImpl
    extends Object
    implements FileSystem
    The change root space wrapper for a given FileSystem relocates the paths accessed by an application to the given namespace. This is helpful in case an application is to use a FileSystem sand box. Only the files below that name space are visible by the file system.

    ATTENTION: Make sure that the FileSystem cannot jail break its sand box by using relative paths with ".." !!!