public class DbxFileSystem
extends org.apache.commons.vfs2.provider.AbstractFileSystem
implements org.apache.commons.vfs2.FileSystem
Modifier and Type | Field and Description |
---|---|
protected DbxFileProvider |
provider
The file provider.
|
protected VFSLib |
vfsLib
The parental object.
|
Modifier | Constructor and Description |
---|---|
protected |
DbxFileSystem(org.apache.commons.vfs2.provider.GenericFileName rootName,
org.apache.commons.vfs2.FileSystemOptions options,
VFSLib vfslib,
DbxFileProvider provider)
The constructor method for this file system.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addCapabilities(java.util.Collection<org.apache.commons.vfs2.Capability> caps)
Adds the capabilities of this file system.
|
protected org.apache.commons.vfs2.FileObject |
createFile(org.apache.commons.vfs2.provider.AbstractFileName name)
Creates a file object.
|
protected DbxClientWrapper |
getClient()
Returns a Dropbox client to the server.
|
double |
getLastModTimeAccuracy()
Last mod time is only a int and in seconds, thus can be off by 999.
|
VFSLib |
getVFSLib()
Provides the VFSLib instance for this filesystem.
|
protected void |
putClient(DbxClientWrapper client)
Returns a Dropbox client to the pool.
|
addJunction, addListener, close, closeCommunicationLink, decorateFileObject, doCloseCommunicationLink, doReplicateFile, fireFileChanged, fireFileCreated, fireFileDeleted, getAttribute, getFileFromCache, getFileSystemManager, getFileSystemOptions, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, init, isOpen, isReleaseable, notifyAllStreamsClosed, putFileToCache, removeFileFromCache, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, resolveFile, setAttribute
getContext, getLogger, setContext, setLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addJunction, addListener, getAttribute, getFileSystemManager, getFileSystemOptions, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttribute
protected VFSLib vfsLib
protected DbxFileProvider provider
protected DbxFileSystem(org.apache.commons.vfs2.provider.GenericFileName rootName, org.apache.commons.vfs2.FileSystemOptions options, VFSLib vfslib, DbxFileProvider provider)
rootName
- The root nameoptions
- The file system optionsvfslib
- The parental object, shared instance if null
provider
- The file providerprotected DbxClientWrapper getClient() throws java.io.IOException
java.io.IOException
- If an I/O error occursprotected void putClient(DbxClientWrapper client)
client
- The clientprotected void addCapabilities(java.util.Collection<org.apache.commons.vfs2.Capability> caps)
addCapabilities
in class org.apache.commons.vfs2.provider.AbstractFileSystem
caps
- The capabilitiesprotected org.apache.commons.vfs2.FileObject createFile(org.apache.commons.vfs2.provider.AbstractFileName name) throws org.apache.commons.vfs2.FileSystemException
createFile
in class org.apache.commons.vfs2.provider.AbstractFileSystem
name
- The capabilitiesorg.apache.commons.vfs2.FileSystemException
public double getLastModTimeAccuracy()
getLastModTimeAccuracy
in interface org.apache.commons.vfs2.FileSystem
getLastModTimeAccuracy
in class org.apache.commons.vfs2.provider.AbstractFileSystem
public VFSLib getVFSLib()
Copyright © 2005-2014 Leisenfels UG. All rights reserved.