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

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

public class RamFileSystemConfigBuilder
extends FileSystemConfigBuilder

Config Builder for the RAM filesystem.


Field Summary
private static java.lang.String MAX_SIZE_KEY
          max size key
private static RamFileSystemConfigBuilder singleton
          config builder singleton
 
Constructor Summary
private RamFileSystemConfigBuilder()
          Constructor
 
Method Summary
protected  java.lang.Class 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.vfs.FileSystemConfigBuilder
getParam, hasParam, setParam
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_SIZE_KEY

private static final java.lang.String MAX_SIZE_KEY
max size key

See Also:
Constant Field Values

singleton

private static RamFileSystemConfigBuilder singleton
config builder singleton

Constructor Detail

RamFileSystemConfigBuilder

private RamFileSystemConfigBuilder()
Constructor

Method Detail

getInstance

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

getConfigClass

protected java.lang.Class getConfigClass()
Specified by:
getConfigClass in class FileSystemConfigBuilder

getMaxSize

public int getMaxSize(FileSystemOptions opts)
Parameters:
opts -
Returns:
See Also:
setMaxSize(org.apache.commons.vfs.FileSystemOptions, int)

setMaxSize

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

Parameters:
opts -
sizeInBytes -