org.apache.commons.vfs2.provider.ram
Class RamFileSystemConfigBuilder

java.lang.Object
  extended by org.apache.commons.vfs2.FileSystemConfigBuilder
      extended by org.apache.commons.vfs2.provider.ram.RamFileSystemConfigBuilder

public final class RamFileSystemConfigBuilder
extends FileSystemConfigBuilder

Config Builder for the RAM filesystem.

Author:
Commons VFS team

Method Summary
protected  java.lang.Class<? extends FileSystem> getConfigClass()
          
static RamFileSystemConfigBuilder getInstance()
           
 int getMaxSize(FileSystemOptions opts)
           
 void setMaxSize(FileSystemOptions opts, int 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, getFloat, getFloat, getFloat, getInteger, getInteger, getInteger, getLong, getLong, getLong, getParam, getRootURI, getShort, getShort, getShort, getString, getString, hasObject, hasParam, setParam, setRootURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static RamFileSystemConfigBuilder getInstance()
Returns:
the config builder SINGLETON

getConfigClass

protected java.lang.Class<? extends FileSystem> getConfigClass()

Specified by:
getConfigClass in class FileSystemConfigBuilder

getMaxSize

public int getMaxSize(FileSystemOptions opts)
Parameters:
opts - The FileSystem options.
Returns:
The maximum size of the file.
See Also:
setMaxSize(org.apache.commons.vfs2.FileSystemOptions, int)

setMaxSize

public void setMaxSize(FileSystemOptions opts,
                       int sizeInBytes)
Sets the maximum size of the file system.

Parameters:
opts - The FileSystem options.
sizeInBytes - The maximum file size.