Class RamFileSystemConfigBuilder
java.lang.Object
org.apache.commons.vfs2.FileSystemConfigBuilder
org.apache.commons.vfs2.provider.ram.RamFileSystemConfigBuilder
Config Builder for the RAM file system.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
max size key.private static final RamFileSystemConfigBuilder
config builder SINGLETON. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Class
<? extends FileSystem> Gets the target of this configuration.static RamFileSystemConfigBuilder
Gets the singleton builder.long
Defaults toInteger.MAX_VALUE
.int
getMaxSize
(FileSystemOptions opts) Defaults toInteger.MAX_VALUE
.void
setMaxSize
(FileSystemOptions opts, int sizeInBytes) Deprecated.void
setMaxSize
(FileSystemOptions opts, long sizeInBytes) Sets the maximum size of the file system.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, getRootURI, getShort, getShort, getShort, getString, getString, hasObject, hasParam, setParam, setParam, setRootURI, toBooleanObject
-
Field Details
-
MAX_SIZE_KEY
max size key.- See Also:
-
SINGLETON
config builder SINGLETON.
-
-
Constructor Details
-
RamFileSystemConfigBuilder
private RamFileSystemConfigBuilder()Constructor
-
-
Method Details
-
getInstance
Gets the singleton builder.- Returns:
- the singleton builder.
-
getConfigClass
Gets the target of this configuration.- Specified by:
getConfigClass
in classFileSystemConfigBuilder
- Returns:
- the specific file system class
-
getLongMaxSize
Defaults toInteger.MAX_VALUE
.- Parameters:
opts
- The FileSystem options.- Returns:
- The maximum size of the file.
- Since:
- 2.1
- See Also:
-
getMaxSize
Defaults toInteger.MAX_VALUE
.- Parameters:
opts
- The FileSystem options.- Returns:
- The maximum size of the file. The next major version will change the return type to a long.
- See Also:
-
setMaxSize
Deprecated.Sets the maximum size of the file system.- Parameters:
opts
- The FileSystem options.sizeInBytes
- The maximum file size.
-
setMaxSize
Sets the maximum size of the file system.- Parameters:
opts
- The FileSystem options.sizeInBytes
- The maximum file size.
-
setMaxSize(FileSystemOptions, long)