public class VfsUtility extends Object
Constructor and Description |
---|
VfsUtility() |
Modifier and Type | Method and Description |
---|---|
static void |
close(org.apache.commons.vfs2.FileObject... fos)
Close FileObject(s)
|
static void |
close(org.apache.commons.vfs2.FileObject fo)
Close the FileObject.
|
static void |
close(org.apache.commons.vfs2.FileSystemManager fsManager)
Close the FileSystemManager.
|
static void |
close(org.apache.commons.vfs2.FileSystemManager fsManager,
org.apache.commons.vfs2.FileObject... fos)
Close both FileObject(s) and FileSystemManager.
|
static void |
close(org.apache.commons.vfs2.FileSystemManager fsManager,
org.apache.commons.vfs2.FileObject fo)
Close both FileObject and FileSystemManager.
|
static void |
configHttpFileSystemProxy(org.apache.commons.vfs2.FileSystemOptions fsOptions,
String webProxyHost,
Integer webProxyPort,
String webProxyUserName,
String webProxyPassword)
Configure FileSystemOptions for HttpFileSystem
|
static String |
extractScheme(String uri)
Extracts the scheme from a URI.
|
static org.apache.commons.vfs2.FileSystemManager |
getManager()
Get a new instance of FileSystemManager.
|
public static org.apache.commons.vfs2.FileSystemManager getManager()
public static void close(org.apache.commons.vfs2.FileSystemManager fsManager)
fsManager
- the file system to be closed. It can be null.public static void close(org.apache.commons.vfs2.FileObject fo)
fo
- the FileObject to be closed. It can be null.public static void close(org.apache.commons.vfs2.FileObject... fos)
fos
- FileObject(s) to be closed.public static void close(org.apache.commons.vfs2.FileSystemManager fsManager, org.apache.commons.vfs2.FileObject fo)
fsManager
- The FileSystemManager to be closed. It can be null.fo
- The FileObject to be closed. It can be null.public static void close(org.apache.commons.vfs2.FileSystemManager fsManager, org.apache.commons.vfs2.FileObject... fos)
fsManager
- The FileSystemManager to be closed. It can be null.fos
- The FileObjects to be closed. It can contain null elements.public static void configHttpFileSystemProxy(org.apache.commons.vfs2.FileSystemOptions fsOptions, String webProxyHost, Integer webProxyPort, String webProxyUserName, String webProxyPassword)
fsOptions
- webProxyHost
- webProxyPort
- webProxyUserName
- webProxyPassword
- Copyright © 2014. All Rights Reserved.