org.apache.commons.vfs2.VFS.createManager()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(275)

本文整理了Java中org.apache.commons.vfs2.VFS.createManager()方法的一些代码示例,展示了VFS.createManager()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。VFS.createManager()方法的具体详情如下:
包路径:org.apache.commons.vfs2.VFS
类名称:VFS
方法名:createManager

VFS.createManager介绍

[英]Creates a file system manager instance.
[中]

代码示例

代码示例来源:origin: com.github.abashev/commons-vfs2

/**
 * Returns the default {@link FileSystemManager} instance.
 * <p>
 * Warning, if you close this instance you may affect all current and future users of this manager singleton.
 *
 * @return The FileSystemManager.
 * @throws FileSystemException if an error occurs creating the manager.
 */
public static synchronized FileSystemManager getManager() throws FileSystemException {
  if (instance == null) {
    instance = createManager("org.apache.commons.vfs2.impl.StandardFileSystemManager");
  }
  return instance;
}

代码示例来源:origin: org.apache.commons/commons-vfs2

/**
 * Returns the default {@link FileSystemManager} instance.
 * <p>
 * Warning, if you close this instance you may affect all current and future users of this manager singleton.
 *
 * @return The FileSystemManager.
 * @throws FileSystemException if an error occurs creating the manager.
 */
public static synchronized FileSystemManager getManager() throws FileSystemException {
  if (instance == null) {
    instance = createManager("org.apache.commons.vfs2.impl.StandardFileSystemManager");
  }
  return instance;
}

代码示例来源:origin: apache/commons-vfs

/**
 * Returns the default {@link FileSystemManager} instance.
 * <p>
 * Warning, if you close this instance you may affect all current and future users of this manager singleton.
 *
 * @return The FileSystemManager.
 * @throws FileSystemException if an error occurs creating the manager.
 */
public static synchronized FileSystemManager getManager() throws FileSystemException {
  if (instance == null) {
    instance = createManager("org.apache.commons.vfs2.impl.StandardFileSystemManager");
  }
  return instance;
}

代码示例来源:origin: org.jetbrains.intellij.deps/commons-vfs2

/**
 * Returns the default {@link FileSystemManager} instance.
 * <p>
 * Warning, if you close this instance you may affect all current
 * and future users of this manager singleton.
 *
 * @return The FileSystemManager.
 * @throws FileSystemException if an error occurs creating the manager.
 */
public static synchronized FileSystemManager getManager()
  throws FileSystemException
{
  if (instance == null)
  {
    instance = createManager("org.apache.commons.vfs2.impl.StandardFileSystemManager");
  }
  return instance;
}

相关文章