TrueZIP Kernel 7.0-rc2

de.schlichtherle.truezip.fs
Class FsDriver

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

@Immutable
@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class)
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(FsModel model, 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

public abstract FsController<?> newController(FsModel model,
                                              @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 == model.getParent() ? null == parent : model.getParent().equals(parent.getModel())

Parameters:
model - the file system model.
parent - the nullable 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-rc2

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