Class ResourceFileSystemConfigBuilder
- java.lang.Object
-
- org.apache.commons.vfs2.FileSystemConfigBuilder
-
- org.apache.commons.vfs2.provider.res.ResourceFileSystemConfigBuilder
-
public final class ResourceFileSystemConfigBuilder extends FileSystemConfigBuilder
The config BUILDER for various FTP configuration options.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ClassLoadergetClassLoader(FileSystemOptions fileSystemOptions)Gets the class loader from the FileSystemOptions.protected java.lang.Class<? extends FileSystem>getConfigClass()Gets the target of this configuration.static ResourceFileSystemConfigBuildergetInstance()Gets the singleton builder.voidsetClassLoader(FileSystemOptions fileSystemOptions, java.lang.ClassLoader classLoader)Sets the class loader in the FileSystemOptions.-
Methods inherited from class org.apache.commons.vfs2.FileSystemConfigBuilder
getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCharacter, getCharacter, getCharacter, getDouble, getDouble, getDouble, getDuration, getDuration, getDurationInteger, getDurationInteger, getEnum, getEnum, getFloat, getFloat, getFloat, getInteger, getInteger, getInteger, getLong, getLong, getLong, getParam, getParamOrDefault, getRootURI, getShort, getShort, getShort, getString, getString, hasObject, hasParam, setParam, setParam, setRootURI, toBooleanObject
-
-
-
-
Method Detail
-
getInstance
public static ResourceFileSystemConfigBuilder getInstance()
Gets the singleton builder.- Returns:
- the singleton builder.
-
getClassLoader
public java.lang.ClassLoader getClassLoader(FileSystemOptions fileSystemOptions)
Gets the class loader from the FileSystemOptions.- Parameters:
fileSystemOptions- The source FileSystemOptions.- Returns:
- the class loader from the FileSystemOptions.
-
getConfigClass
protected java.lang.Class<? extends FileSystem> getConfigClass()
Description copied from class:FileSystemConfigBuilderGets the target of this configuration.- Specified by:
getConfigClassin classFileSystemConfigBuilder- Returns:
- the specific file system class
-
setClassLoader
public void setClassLoader(FileSystemOptions fileSystemOptions, java.lang.ClassLoader classLoader)
Sets the class loader in the FileSystemOptions.- Parameters:
fileSystemOptions- Target FileSystemOptions.classLoader- The data to set.
-
-