Modifier and Type | Method and Description |
---|---|
Configuration.Builder |
Configuration.Builder.addAttributeProvider(AttributeProvider provider)
Adds an attribute provider for a custom view for the file system to support.
|
static Configuration.Builder |
Configuration.builder(PathType pathType)
Creates a new mutable
Configuration builder using the given path type. |
Configuration.Builder |
Configuration.Builder.setAttributeViews(String first,
String... more)
Sets the attribute views the file system should support.
|
Configuration.Builder |
Configuration.Builder.setBlockSize(int blockSize)
Sets the block size (in bytes) for the file system to use.
|
Configuration.Builder |
Configuration.Builder.setDefaultAttributeValue(String attribute,
Object value)
Sets the default value to use for the given file attribute when creating new files.
|
Configuration.Builder |
Configuration.Builder.setMaxCacheSize(long maxCacheSize)
Sets the maximum amount of unused space (in bytes) in the file system's in-memory file
storage that should be cached for reuse.
|
Configuration.Builder |
Configuration.Builder.setMaxSize(long maxSize)
Sets the maximum size (in bytes) for the file system's in-memory file storage.
|
Configuration.Builder |
Configuration.Builder.setNameCanonicalNormalization(PathNormalization first,
PathNormalization... more)
Returns the normalizations that will be applied to the canonical form of filenames in the
file system.
|
Configuration.Builder |
Configuration.Builder.setNameDisplayNormalization(PathNormalization first,
PathNormalization... more)
Sets the normalizations that will be applied to the display form of filenames.
|
Configuration.Builder |
Configuration.Builder.setPathEqualityUsesCanonicalForm(boolean useCanonicalForm)
Sets whether
Path objects in the file system use the canonical form (true) or the
display form (false) of filenames for determining equality of two paths. |
Configuration.Builder |
Configuration.Builder.setRoots(String first,
String... more)
Sets the roots for the file system.
|
Configuration.Builder |
Configuration.Builder.setSupportedFeatures(Feature... features)
Sets the given features to be supported by the file system.
|
Configuration.Builder |
Configuration.Builder.setWatchServiceConfiguration(WatchServiceConfiguration config)
Sets the configuration that
WatchService instances created by the file system
should use. |
Configuration.Builder |
Configuration.Builder.setWorkingDirectory(String workingDirectory)
Sets the path to the working directory for the file system.
|
Configuration.Builder |
Configuration.toBuilder()
Returns a new mutable builder that initially contains the same settings as this configuration.
|
Copyright © 2013–2016 Google Inc.. All rights reserved.