TrueZIP Kernel 7.0-rc1

de.schlichtherle.truezip.fs
Class FsDriver

java.lang.Object
  extended by de.schlichtherle.truezip.fs.FsDriver
Direct Known Subclasses:
FsArchiveDriver

@Immutable
public abstract class FsDriver
extends Object

An abstract factory for thread-safe file system controllers.

Author:
Christian Schlichtherle

Constructor Summary
FsDriver()
           
 
Method Summary
 boolean isFederated()
          Returns true iff this file system driver implements a federated file system type, i.e. if the type of file system must be a member of a parent file system.
abstract  FsController<?> newController(FsMountPoint mountPoint, FsController<?> parent)
          Returns a new thread-safe file system controller for the given mount point and parent file system controller.
 String toString()
          Returns a string representation of this object for debugging and logging purposes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FsDriver

public FsDriver()
Method Detail

newController

@NonNull
public abstract FsController<?> newController(@NonNull
                                                      FsMountPoint mountPoint,
                                                      @Nullable
                                                      FsController<?> parent)
Returns a new thread-safe file system controller for the given mount point and parent file system controller.

When called, the following expression is a precondition: null == mountPoint.getParent() ? null == parent : mountPoint.getParent().equals(parent.getModel().getMountPoint())

Parameters:
mountPoint - the mount point of the file system.
parent - the parent file system controller.
Returns:
A new thread-safe file system controller for the given mount point and parent file system controller.

isFederated

public boolean isFederated()
Returns true iff this file system driver implements a federated file system type, i.e. if the type of file system must be a member of a parent file system.

The implementation in the class FsDriver returns false.

Returns:
true iff the type of the file system implemented by this file system driver is federated, i.e. must be a member of a parent file system.

toString

public String toString()
Returns a string representation of this object for debugging and logging purposes.

Overrides:
toString in class Object

TrueZIP Kernel 7.0-rc1

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.