Class ConnectionFileSystem
- java.lang.Object
-
- org.apache.commons.vfs2.provider.AbstractVfsComponent
-
- org.apache.commons.vfs2.provider.AbstractFileSystem
-
- org.pentaho.di.connections.vfs.provider.ConnectionFileSystem
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.commons.vfs2.FileSystem,org.apache.commons.vfs2.provider.VfsComponent
public class ConnectionFileSystem extends org.apache.commons.vfs2.provider.AbstractFileSystem implements org.apache.commons.vfs2.FileSystem
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONNECTIONstatic StringDOMAIN_ROOT
-
Constructor Summary
Constructors Constructor Description ConnectionFileSystem(org.apache.commons.vfs2.FileName rootName, org.apache.commons.vfs2.FileSystemOptions fileSystemOptions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddCapabilities(Collection<org.apache.commons.vfs2.Capability> collection)protected org.apache.commons.vfs2.FileObjectcreateFile(org.apache.commons.vfs2.provider.AbstractFileName abstractFileName)static StringgetUrl(org.apache.commons.vfs2.provider.AbstractFileName abstractFileName, ConnectionDetails connectionDetails)Creates a url forConnectionFileNameorg.apache.commons.vfs2.FileObjectresolveFile(org.apache.commons.vfs2.FileName name)-
Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileSystem
addJunction, addListener, close, closeCommunicationLink, decorateFileObject, doCloseCommunicationLink, doReplicateFile, fireFileChanged, fireFileCreated, fireFileDeleted, getAttribute, getFileFromCache, getFileSystemManager, getFileSystemOptions, getLastModTimeAccuracy, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, init, isOpen, isReleaseable, notifyAllStreamsClosed, putFileToCache, removeFileFromCache, removeJunction, removeListener, replicateFile, resolveFile, setAttribute
-
Methods inherited from class org.apache.commons.vfs2.provider.AbstractVfsComponent
getContext, getLogger, setContext, setLogger
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.commons.vfs2.FileSystem
addJunction, addListener, getAttribute, getFileSystemManager, getFileSystemOptions, getLastModTimeAccuracy, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, removeJunction, removeListener, replicateFile, resolveFile, setAttribute
-
-
-
-
Field Detail
-
CONNECTION
public static final String CONNECTION
- See Also:
- Constant Field Values
-
DOMAIN_ROOT
public static final String DOMAIN_ROOT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUrl
public static String getUrl(org.apache.commons.vfs2.provider.AbstractFileName abstractFileName, ConnectionDetails connectionDetails)
Creates a url forConnectionFileName- Parameters:
abstractFileName- File nameconnectionDetails- Connection details for the file name- Returns:
- created url otherwise null
-
createFile
protected org.apache.commons.vfs2.FileObject createFile(org.apache.commons.vfs2.provider.AbstractFileName abstractFileName) throws Exception- Specified by:
createFilein classorg.apache.commons.vfs2.provider.AbstractFileSystem- Throws:
Exception
-
addCapabilities
protected void addCapabilities(Collection<org.apache.commons.vfs2.Capability> collection)
- Specified by:
addCapabilitiesin classorg.apache.commons.vfs2.provider.AbstractFileSystem
-
resolveFile
public org.apache.commons.vfs2.FileObject resolveFile(org.apache.commons.vfs2.FileName name) throws org.apache.commons.vfs2.FileSystemException- Specified by:
resolveFilein interfaceorg.apache.commons.vfs2.FileSystem- Overrides:
resolveFilein classorg.apache.commons.vfs2.provider.AbstractFileSystem- Throws:
org.apache.commons.vfs2.FileSystemException
-
-