Package org.apache.commons.vfs2
Class FileSystemOptions
- java.lang.Object
-
- org.apache.commons.vfs2.FileSystemOptions
-
- All Implemented Interfaces:
java.lang.Cloneable,java.lang.Comparable<FileSystemOptions>
public final class FileSystemOptions extends java.lang.Object implements java.lang.Cloneable, java.lang.Comparable<FileSystemOptions>
Configures file systems individually with these options.To configure a file system, you set properties on a
FileSystemOptionsobject. Most file systems provide aFileSystemConfigBuilderwith specific options for that file system.To use the options, pass them to
FileSystemManager.resolveFile(String,FileSystemOptions). From there, the options apply to all files that are resolved relative to that file.- See Also:
DefaultFileSystemConfigBuilder,FtpFileSystemConfigBuilder,org.apache.commons.vfs2.provider.ftps.FtpsFileSystemConfigBuilder,HttpFileSystemConfigBuilder,RamFileSystemConfigBuilder,ResourceFileSystemConfigBuilder,SftpFileSystemConfigBuilder,ZipFileSystemConfigBuilder
-
-
Constructor Summary
Constructors Constructor Description FileSystemOptions()Constructs a new instance.FileSystemOptions(java.util.Map<org.apache.commons.vfs2.FileSystemOptions.FileSystemOptionKey,java.lang.Object> options)Constructs a new instance with the given options.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()intcompareTo(FileSystemOptions other)booleanequals(java.lang.Object obj)inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
FileSystemOptions
public FileSystemOptions()
Constructs a new instance.
-
FileSystemOptions
public FileSystemOptions(java.util.Map<org.apache.commons.vfs2.FileSystemOptions.FileSystemOptionKey,java.lang.Object> options)
Constructs a new instance with the given options.- Parameters:
options- the options.- Since:
- 2.10.0
-
-
Method Detail
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object- Since:
- 2.0
-
compareTo
public int compareTo(FileSystemOptions other)
- Specified by:
compareToin interfacejava.lang.Comparable<FileSystemOptions>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-