public class GDriveFileSystem
extends org.apache.commons.vfs2.provider.AbstractFileSystem
implements org.apache.commons.vfs2.FileSystem
Modifier and Type | Field and Description |
---|---|
protected GDriveFileProvider |
provider
The file provider.
|
protected VFSLib |
vfsLib
The parental object.
|
Modifier | Constructor and Description |
---|---|
protected |
GDriveFileSystem(org.apache.commons.vfs2.provider.GenericFileName rootName,
org.apache.commons.vfs2.FileSystemOptions options,
VFSLib vfslib,
GDriveFileProvider 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 GDriveClientWrapper |
getClient()
Returns a Google Drive client to the server.
|
double |
getLastModTimeAccuracy()
Last mod time is only a int and in seconds, thus can be off by 999.
|
GDriveFileProvider |
getProvider()
Provides the provider for this filesystem.
|
VFSLib |
getVFSLib()
Provides the VFSLib instance for this filesystem.
|
protected void |
putClient(GDriveClientWrapper client)
Returns a Google Drive 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 GDriveFileProvider provider
protected GDriveFileSystem(org.apache.commons.vfs2.provider.GenericFileName rootName, org.apache.commons.vfs2.FileSystemOptions options, VFSLib vfslib, GDriveFileProvider provider)
rootName
- The root nameoptions
- The file system optionsvfslib
- The parental object, shared instance if null
provider
- The file providerprotected GDriveClientWrapper getClient() throws java.io.IOException
java.io.IOException
- If an I/O error occursprotected void putClient(GDriveClientWrapper 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()
public GDriveFileProvider getProvider()
Copyright © 2005-2014 Leisenfels UG. All rights reserved.