io.vertx.core.file

## Class FileSystemOptions

- java.lang.Object
- - io.vertx.core.file.FileSystemOptions

-     public class FileSystemOptions
      extends Object

  Vert.x file system base configuration, this class can be extended by provider implementations to configure those specific implementations.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static boolean` | `DEFAULT_CLASS_PATH_RESOLVING_ENABLED` The default behavior to cache or not class path resolution = `false` if and only if the system property `"vertx.disableFileCPResolving"` exists and is set to the string `"false"`
    `static boolean` | `DEFAULT_FILE_CACHING_ENABLED` The default behavior for caching files for class path resolution = `false` if and only if the system property `"vertx.disableFileCaching"` exists and is set to the string `"false"`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `FileSystemOptions()` Default constructor
    `FileSystemOptions(FileSystemOptions other)` Copy constructor
    `FileSystemOptions(JsonObject json)` Creates a new instance of `FileSystemOptions` from the JSON object.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object o)`
    `int` | `hashCode()`
    `boolean` | `isClassPathResolvingEnabled()`
    `boolean` | `isFileCachingEnabled()`
    `FileSystemOptions` | `setClassPathResolvingEnabled(boolean classPathResolvingEnabled)` When vert.x cannot find the file on the filesystem it tries to resolve the file from the class path when this is set to `true`.
    `FileSystemOptions` | `setFileCachingEnabled(boolean fileCachingEnabled)` Set to `true` to cache files on the real file system when the filesystem performs class path resolving.
    `JsonObject` | `toJson()` Builds a JSON object representing the current `FileSystemOptions`.
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### DEFAULT_FILE_CACHING_ENABLED

          public static final boolean DEFAULT_FILE_CACHING_ENABLED

      The default behavior for caching files for class path resolution = `false` if and only if the system property `"vertx.disableFileCaching"` exists and is set to the string `"false"`

    - #### DEFAULT_CLASS_PATH_RESOLVING_ENABLED

          public static final boolean DEFAULT_CLASS_PATH_RESOLVING_ENABLED

      The default behavior to cache or not class path resolution = `false` if and only if the system property `"vertx.disableFileCPResolving"` exists and is set to the string `"false"`

  - ### Constructor Detail

    - #### FileSystemOptions

          public FileSystemOptions()

      Default constructor

    - #### FileSystemOptions

          public FileSystemOptions(FileSystemOptions other)

      Copy constructor
      Parameters:
        `other` - The other `FileSystemOptions` to copy when creating this

    - #### FileSystemOptions

          public FileSystemOptions(JsonObject json)

      Creates a new instance of `FileSystemOptions` from the JSON object. This JSOn object has (generally) been generated using `toJson()`.
      Parameters:
        `json` - the json object

  - ### Method Detail

    - #### toJson

          public JsonObject toJson()

      Builds a JSON object representing the current `FileSystemOptions`.
      Returns:
        the JSON representation

    - #### isClassPathResolvingEnabled

          public boolean isClassPathResolvingEnabled()

      Returns:
        whether classpath resolving is enabled

    - #### setClassPathResolvingEnabled

          public FileSystemOptions setClassPathResolvingEnabled(boolean classPathResolvingEnabled)

      When vert.x cannot find the file on the filesystem it tries to resolve the file from the class path when this is set to `true`.
      Parameters:
        `classPathResolvingEnabled` - the value
      Returns:
        a reference to this, so the API can be used fluently

    - #### isFileCachingEnabled

          public boolean isFileCachingEnabled()

      Returns:
        whether file caching is enabled for class path resolving

    - #### setFileCachingEnabled

          public FileSystemOptions setFileCachingEnabled(boolean fileCachingEnabled)

      Set to `true` to cache files on the real file system when the filesystem performs class path resolving.
      Parameters:
        `fileCachingEnabled` - the value
      Returns:
        a reference to this, so the API can be used fluently

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2018 Eclipse. All rights reserved.