Class ZipFileSystemConfigBuilder
- java.lang.Object
-
- org.apache.commons.vfs2.FileSystemConfigBuilder
-
- org.apache.commons.vfs2.provider.zip.ZipFileSystemConfigBuilder
-
public class ZipFileSystemConfigBuilder extends FileSystemConfigBuilder
ConfiguresFileSystemOptionss.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.charset.CharsetgetCharset(FileSystemOptions fileSystemOptions)Gets the Charset from the FileSystemOptions orStandardCharsets.UTF_8if absent.protected java.lang.Class<? extends FileSystem>getConfigClass()Gets the target of this configuration.static ZipFileSystemConfigBuildergetInstance()Gets the singleton instance.voidsetCharset(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_8if absent.- Parameters:
fileSystemOptions- The source FileSystemOptions.- Returns:
- the Charset from the FileSystemOptions.
-
getConfigClass
protected java.lang.Class<? extends FileSystem> getConfigClass()
Description copied from class:FileSystemConfigBuilderGets the target of this configuration.- Specified by:
getConfigClassin 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.
-
-