public class S3FileSystem
extends org.apache.commons.vfs2.provider.AbstractFileSystem
implements org.apache.commons.vfs2.FileSystem
| Modifier and Type | Field and Description |
|---|---|
protected S3FileProvider |
provider
The file provider.
|
protected VFSLib |
vfsLib
The parental object.
|
| Modifier | Constructor and Description |
|---|---|
protected |
S3FileSystem(org.apache.commons.vfs2.provider.GenericFileName rootName,
org.apache.commons.vfs2.FileSystemOptions options,
VFSLib vfslib,
S3FileProvider 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 S3ClientWrapper |
getClient()
Returns a Amazon® S3 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(S3ClientWrapper client)
Returns a Amazon® S3 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, setAttributegetContext, getLogger, setContext, setLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddJunction, addListener, getAttribute, getFileSystemManager, getFileSystemOptions, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttributeprotected VFSLib vfsLib
protected S3FileProvider provider
protected S3FileSystem(org.apache.commons.vfs2.provider.GenericFileName rootName,
org.apache.commons.vfs2.FileSystemOptions options,
VFSLib vfslib,
S3FileProvider provider)
rootName - The root nameoptions - The file system optionsvfslib - The parental object, shared instance if nullprovider - The file providerprotected S3ClientWrapper getClient() throws java.io.IOException
java.io.IOException - If an I/O error occursprotected void putClient(S3ClientWrapper client)
client - The clientprotected void addCapabilities(java.util.Collection<org.apache.commons.vfs2.Capability> caps)
addCapabilities in class org.apache.commons.vfs2.provider.AbstractFileSystemcaps - 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.AbstractFileSystemname - The capabilitiesorg.apache.commons.vfs2.FileSystemExceptionpublic double getLastModTimeAccuracy()
getLastModTimeAccuracy in interface org.apache.commons.vfs2.FileSystemgetLastModTimeAccuracy in class org.apache.commons.vfs2.provider.AbstractFileSystempublic VFSLib getVFSLib()
Copyright © 2005-2013 Leisenfels UG. All rights reserved.