public class FileCacher
extends java.lang.Object
Constructor and Description |
---|
FileCacher() |
Modifier and Type | Method and Description |
---|---|
void |
addAuthenticator(URIxMatcher matcher,
org.apache.commons.vfs2.UserAuthenticator auth) |
void |
addIdentityRepository(URIxMatcher matcher,
com.jcraft.jsch.IdentityRepository repo) |
java.io.File |
cache(URIx uri,
java.io.File cacheFile) |
java.io.File |
cache(URIx uri,
java.io.File cacheFile,
FileTransferMonitor monitor) |
java.io.File |
cache(URIx uri,
java.lang.String cachePath) |
long |
getFileSize(java.io.File file) |
long |
getFileSize(URIx uri)
Returns the size of the specified file
|
java.io.InputStream |
getInputStream(URIx uri) |
void |
initialize() |
void |
release() |
static void |
setAuthenticator(org.apache.commons.vfs2.FileSystemOptions opts,
org.apache.commons.vfs2.UserAuthenticator auth) |
static void |
setDefaultFsOptions(org.apache.commons.vfs2.FileSystemOptions opts) |
static void |
setIdentityFactory(org.apache.commons.vfs2.FileSystemOptions opts,
org.apache.commons.vfs2.provider.sftp.IdentityRepositoryFactory factory) |
public void initialize() throws org.apache.commons.vfs2.FileSystemException
org.apache.commons.vfs2.FileSystemException
public void release()
public void addAuthenticator(URIxMatcher matcher, org.apache.commons.vfs2.UserAuthenticator auth)
public void addIdentityRepository(URIxMatcher matcher, com.jcraft.jsch.IdentityRepository repo)
public static void setDefaultFsOptions(org.apache.commons.vfs2.FileSystemOptions opts) throws org.apache.commons.vfs2.FileSystemException
org.apache.commons.vfs2.FileSystemException
public static void setAuthenticator(org.apache.commons.vfs2.FileSystemOptions opts, org.apache.commons.vfs2.UserAuthenticator auth) throws org.apache.commons.vfs2.FileSystemException
org.apache.commons.vfs2.FileSystemException
public static void setIdentityFactory(org.apache.commons.vfs2.FileSystemOptions opts, org.apache.commons.vfs2.provider.sftp.IdentityRepositoryFactory factory) throws org.apache.commons.vfs2.FileSystemException
org.apache.commons.vfs2.FileSystemException
public java.io.File cache(URIx uri, java.lang.String cachePath) throws org.apache.commons.vfs2.FileSystemException
org.apache.commons.vfs2.FileSystemException
public long getFileSize(URIx uri)
public long getFileSize(java.io.File file)
public java.io.File cache(URIx uri, java.io.File cacheFile) throws org.apache.commons.vfs2.FileSystemException
org.apache.commons.vfs2.FileSystemException
public java.io.File cache(URIx uri, java.io.File cacheFile, FileTransferMonitor monitor) throws org.apache.commons.vfs2.FileSystemException
org.apache.commons.vfs2.FileSystemException
public java.io.InputStream getInputStream(URIx uri) throws org.apache.commons.vfs2.FileSystemException
org.apache.commons.vfs2.FileSystemException