Class ZipFileSystemConfigBuilder

java.lang.Object
org.apache.commons.vfs2.FileSystemConfigBuilder
org.apache.commons.vfs2.provider.zip.ZipFileSystemConfigBuilder

public class ZipFileSystemConfigBuilder extends FileSystemConfigBuilder
Configures FileSystemOptionss.
  • Field Details

  • Constructor Details

    • ZipFileSystemConfigBuilder

      private ZipFileSystemConfigBuilder()
      Constructs a new instance.
  • Method Details

    • getInstance

      public static final ZipFileSystemConfigBuilder getInstance()
      Gets the singleton instance.
      Returns:
      the singleton instance.
    • getCharset

      public Charset getCharset(FileSystemOptions fileSystemOptions)
      Gets the Charset from the FileSystemOptions or StandardCharsets.UTF_8 if absent.
      Parameters:
      fileSystemOptions - The source FileSystemOptions.
      Returns:
      the Charset from the FileSystemOptions.
    • getConfigClass

      protected Class<? extends FileSystem> getConfigClass()
      Description copied from class: FileSystemConfigBuilder
      Gets the target of this configuration.
      Specified by:
      getConfigClass in class FileSystemConfigBuilder
      Returns:
      the specific file system class
    • setCharset

      public void setCharset(FileSystemOptions fileSystemOptions, Charset charset)
      Sets the Charset in the FileSystemOptions.
      Parameters:
      fileSystemOptions - The target FileSystemOptions.
      charset - The Charset to set.