Class ZipFileSystemConfigBuilder
- java.lang.Object
-
- org.apache.commons.vfs2.FileSystemConfigBuilder
-
- org.apache.commons.vfs2.provider.zip.ZipFileSystemConfigBuilder
-
public class ZipFileSystemConfigBuilder extends FileSystemConfigBuilder
ConfiguresFileSystemOptions
s.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.charset.Charset
getCharset(FileSystemOptions fileSystemOptions)
Gets the Charset from the FileSystemOptions orStandardCharsets.UTF_8
if absent.protected java.lang.Class<? extends FileSystem>
getConfigClass()
Gets the target of this configuration.static ZipFileSystemConfigBuilder
getInstance()
Gets the singleton instance.void
setCharset(FileSystemOptions fileSystemOptions, java.nio.charset.Charset charset)
Sets the Charset in the FileSystemOptions.-
Methods inherited from class org.apache.commons.vfs2.FileSystemConfigBuilder
getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCharacter, getCharacter, getCharacter, getDouble, getDouble, getDouble, getDuration, getDuration, getDurationInteger, getDurationInteger, getEnum, getEnum, getFloat, getFloat, getFloat, getInteger, getInteger, getInteger, getLong, getLong, getLong, getParam, getParamOrDefault, getRootURI, getShort, getShort, getShort, getString, getString, hasObject, hasParam, setParam, setParam, setRootURI, toBooleanObject
-
-
-
-
Method Detail
-
getInstance
public static final ZipFileSystemConfigBuilder getInstance()
Gets the singleton instance.- Returns:
- the singleton instance.
-
getCharset
public java.nio.charset.Charset getCharset(FileSystemOptions fileSystemOptions)
Gets the Charset from the FileSystemOptions orStandardCharsets.UTF_8
if absent.- Parameters:
fileSystemOptions
- The source FileSystemOptions.- Returns:
- the Charset from the FileSystemOptions.
-
getConfigClass
protected java.lang.Class<? extends FileSystem> getConfigClass()
Description copied from class:FileSystemConfigBuilder
Gets the target of this configuration.- Specified by:
getConfigClass
in classFileSystemConfigBuilder
- Returns:
- the specific file system class
-
setCharset
public void setCharset(FileSystemOptions fileSystemOptions, java.nio.charset.Charset charset)
Sets the Charset in the FileSystemOptions.- Parameters:
fileSystemOptions
- The target FileSystemOptions.charset
- The Charset to set.
-
-